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