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