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