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