s = input() good = True for i in range(len(s)): mod = (i+1)%2 if (mod == 0 and s[i] != ' ') or (mod == 1 and s[i] == ' '): good = False break print("Yes" if good else "No")