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