def main(): s = input() if s[0] == "4" or s[0] == "5": print("Yes") else: print("No") if __name__ == "__main__": main()