bryce1010模板
http://codeforces.com/gym/101810
#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll lowbit(ll x)
{
return x&(-x);
}
int main()
{
ll t;
cin>>t;
ll x;
while(t--)
{
cin>>x;
ll res=1;
while((x&1)==0)
{
x>>=1;
res++;
}
cout<<res<<endl;
}
return 0;
}