S=input();print("YNeos"[any([i%2==0 and S[i]==" "or i%2==1 and S[i]!=" "for i in range(len(S))])::2])