#include<bits/stdc++.h>
using namespace std;
long long n,t,i,ald,k,f;
char c;
inline void read(long long &x) {
x = 0, f = 1;
c = getchar();
for(; !isdigit(c); c = getchar()) if(c == '-') f = -1;
for(; isdigit(c); c = getchar()) x = x * 10 + c - '0';
x = x * f;
}
int main (){
freopen("ming.in","r",stdin);
freopen("ming.out","w",stdout);
//scanf("%lld",&n);
read(n);
for (i=1;i<=n;i++)
{
//scanf("%lld",&t);
read(t);
ald=floor(log2(t*1.0))+1;
printf("%lld",ald);
}
}