S = input() x = all((i % 2 == 0 and S[i] != ' ') or (i % 2 == 1 and S[i] == ' ') for i in range(len(S))) print('Yes' if x else 'No')