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