s = input() f = all(c != ' ' for c in s[0::2]) f = f and all(c == ' ' for c in s[1::2]) print('Yes' if f else 'No')