a = input() print("YNeos"[all(c != " " for c in s[0::2]) and all(c == " " for c in s[1::2]) :: 2])