eolymp
bolt
Try our new interface for solving problems
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 (1t100). Each of the next t lines contains one integer n (1n1018).

Output

For each test case print in a separate line the most complex number from 1 to n and its complexity.

Time limit 1 second
Memory limit 128 MiB
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
Source III International Summer School Programming in Sevastopol 2012