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