Problem2126--xiaoming's weekend

2126: xiaoming's weekend

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 146  Solved: 31
[Submit] [Status] [Web Board] [Creator:]

Description

Numerals 0 to 6 represent Sunday to Saturday, the letters S and R represent sunny and rainy days respectively.Xiao Ming can only go out on sunny weekends, please judge whether Xiao Ming can go out to play.

Input

Given a integer(0 to 6) and a letters S or R

Output

YES or NO

Sample Input Copy

0  S

Sample Output Copy

YES

Source/Category

168