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