n=list(input()) k=0 for i in n: k+=1 if k%2==0 and i!=" ": print("No") break else: print("Yes")