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