import sys s=input() for i in range(len(s)): if (i%2==0 and s[i]==' ') or (i%2==1 and s[i]!=' '): print("No") sys.exit() print("Yes")