num = input() if num[:1] == "4" or num[:1] == "5": print("Yes") else: print("No")