s=input() x=int(s[0]) if x==4: print("Yes") elif x==5: print("Yes") else : print("No")