Problems
Divisors of the number
Divisors of the number
Lets define the complexity of the number as the number of its divisors. Find among the numbers from 1 to n the most complex number. If there are several such numbers, find the smallest of them.
Input
First line contains the number of test cases t (1 ≤ t ≤ 100). Each of the next t lines contains one integer n (1 ≤ n ≤ 1018
).
Output
For each test case print in a separate line the most complex number from 1 to n and its complexity.
Input example #1
6 1 10 100 1000 10000 100000
Output example #1
1 1 6 4 60 12 840 32 7560 64 83160 128