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