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