s = input() print("Yes" if s[0] == "4" or s[0] == "5" else "No")