a = input() b = True for i in range(len(a)): if i % 2 == 0: if not a[i].islower(): b = False break else: if a[i] != ' ': b = False break print("Yes" if b else "No")