import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = read().rstrip() bl = all(x == 32 for x in S[1::2]) and all(x != 32 for x in S[::2]) answer = 'Yes' if bl else 'No' print(answer)