import math as m a = input() print("YNeos"[m.ceil(len(a) / 2) != len(a.replace(" ", "")) :: 2])