Stevie May's 23rd goal of a prolific season put St Johnstone on their way to the Scottish Cup quarter-finals after a 4-0 victory over Forfar Athletic.