s=input() n=len(s) flg=0 for i in range(n): if i%2==0: if(s[i]==" "): flg=1 else: if(s[i]!=" "): flg=1 if(flg==1): print("No") else: print("Yes")