S = input() print('Yes' if len(''.join([S[i] for i in range(len(S)) if i % 2]).strip()) == 0 else 'No')