l = input() print("Yes" if ' ' not in l[::2] and set(l[1::2])=={' '} else "No")