def main(): S = input() for idx, letter in enumerate(S): if not ((idx % 2 == 0) ^ (letter == " ")): print("No") break else: print("Yes") if __name__ == "__main__": main()