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