s = input() for i in range(len(s)): if (i % 2) ^ (s[i] == ' '): print('No') break else: print('Yes')