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