if (input() in '575') == True: print('YES') else: print('NO')