#include <bits/stdc++.h>
using namespace std;
#define bool int 

/* Function to check if x is power of 2*/
bool isPowerOfTwo (long long int x) 
{ 
	/* First x in the below expression is for the case when x is 0 */
	return x && (!(x&(x-1))); 
} 

/*Driver code*/
int main() 
{ 
      int t;
    cin>>t;
    while(t--)
    {
        long double n;
        
        cin>>n; 
	isPowerOfTwo(n)? cout<<"No\n":cout<<"Yes\n" ; 
    }
//	isPowerOfTwo(64)? cout<<"Yes\n": cout<<"No\n"; 
	return 0; 
} 

// This code is contributed by rathbhupendra
