import math N=int(input()) prime_max=int(math.sqrt(N))+1 is_prime=[True for i in range(prime_max)] #ふるい for i in range(2,prime_max): if is_prime[i]==True: tmp=i+i while(tmp=2 else 'NO' print(out)