S = input() ans = "Yes" for i in range(len(S)): if (i+1) % 2 == 0: if S[i] != " ": ans = "No" break else: if S[i] == " ": ans = "No" break print(ans)