Given a number you are required to find the and the number of it has.
Input :
The first line of the input consists of a single integer t (the number of test cases) ( )
The next t lines consists of a single integer p representing the query ( )
Output :
Output contains two space separated integers representing the and number of .