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