#NDIVPHI. N DIV PHI_N
N DIV PHI_N
Given an integer N ≤ 1040 find the smallest m ≤ N such that m / phi(m) is maximum, where Phi is Euler's totient function.
Input
There are twenty values for N.
N1
N2
.
.
.
N20
Output
Output twenty answers, one for each value of N in the input.
m1
m2
.
.
.
m20
Example
Input: 10 . .</p>Output: 6 . .