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