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