s = input() f1 = all(s[i].islower() for i in range(0, len(s), 2)) f2 = all(s[i] == ' ' for i in range(1, len(s), 2)) print('Yes' if f1 and f2 else 'No')