a = input() print("YNeos"[(len(a) % 2 != 1 or a[::2].count(" ")) :: 2])