s = input() for i in range(len(s)): if i % 2 == 0: if s[i].islower() == False: print("No") exit() else: if s[i].isspace() == False: print("No") exit() print("Yes")