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