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