S=input() if S[0] in '45': print('Yes') else: print('No')