#include using namespace std; int main() { int n,i,j,t; cin>>n; for (i=1;i<=n;i++) { cin>>j; for (t=1;(1LL<<1*t)