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