S = input() S1 = [S[i] for i in range(len(S)) if i % 2 == 0] S2 = [S[i] for i in range(len(S)) if i % 2 == 1] if ' ' in S1 or (not ' ' in S2): print('No') else: print('Yes')