s = str(input()) n = len(s) for i in range(n): c = s[i] if i%2 == 1: if c != ' ': print('No') exit() else: t = c.lower() if c != t: print('No') exit() else: print('Yes')