x=["Monday","Tuesday","Wednesday","Thrusday","Friday"]
y=["Saturday","Sunday"]
xy=str(input())
for i in x:
    if(xy==i):
        print("no")
        break
    else:
        print("yes")
        break
              
