S = input() for i, x in enumerate(S): if (i % 2 == 0 and not x.islower() or i % 2 == 1 and not x == " "): print("No") break else: print("Yes")