s = str(input()) if s[0] == '4' or s[0] == '5': print('Yes') else: print('No')