for i, c in enumerate(input()): if i%2 and c != ' ' or i%2 == 0 and (c < 'a' or 'z' < c): print('No') exit(0) print('Yes')