s=input() a=0 for i in range(len(s)//2): if s[2*i+1]!=" ": a=1 if s[2*i]==" ": a=1 print(["Yes","No"][a])