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