#include <iostream>
#include <fstream>

using namespace std;
typedef long long ll;
int t,n,w,h,f,k;

int main(){
cin >>t;
while(t--){
	cin>>w>>h>>n;
	f=1;
	k=1;
    while(w%2==0){
    	w/=2;
    	f*=2;
	}
	while(h%2==0){
    	h/=2;
    	k*=2;
	}
	f=f*k;
	if(f>=n)cout<<"YES\n";
	else cout<<"NO\n";
}
return 0;
}

