简单题
#include <iostream>
using namespace std;
int main()
{
int n,time;
cin >> time;
while(time--)
{
cin >> n;
for(int i = 1;;i++,n /= 2)
{
if(n%2 != 0)
{
cout << n << ' ' << i-1 <<endl;
break;
}
}
}
return 0;
}