#include<iostream>
using namespace std;

int main() {

	int t;
	cin >> t;
	for (int i = 0; i < t; i++) {
			int w, h, n;
			cin>>w>>h>>n;
			int H = 1;
			int W = 1;
			while(w%2==0){
				w/=2;
				W*=2;
			}
			while(h%2==0){
				h/=2;
				H*=2;
			}
			if(W*H>=n){
				cout<<"YES\n"<<endl;
			}
			else{
				cout<<"NO\n";
			}
	}
	return 0;
}