S = input() if all(s.islower() for s in S[::2]) and all(s.isspace() for s in S[1::2]): print("Yes") else: print("No")