S = input() print("Yes" if S[0] in ["4", "5"] else "No")