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