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