#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int t,n,a,b;
int main(){
	cin>>t;
	while(t--){
		cin>>a>>b>>n;
		if(n==1)cout<<"YES"<<endl;
		else if(n>1e8)cout<<"NO"<<endl;
		else{
			int c = a * b;
			int k=1;
			if(n%2==1)n+=1;
			while(c%2==0 ){k*=2;c/=2;}
			if(n<=k)cout<<"YES"<<endl;
			else cout<<"NO"<<endl;
		}
	}
}
