s = input() n = len(s) print("Yes" if len(s.split()) == (n + 1) // 2 else "No")