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