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