#include<iostream>
using namespace std;

int main(){
	int w,h,n,t;
	cin>>t;
	while(t--){
		int s=1;
		cin>>w>>h>>n;
		int size=w*h;
		while(size>s){
			if(w%2==0 && h%2!=0){
				w=w/2;
				s=s*2;
			}
			else if(h%2==0 && w%2!=0){
				h=h/2;
				s=s*2;
			}
			else if(w%2==0 && h%2==0){
				w=w/2;
				s=s*2;
			}
			else {
				break;
			}
		}
		if(s>=n){
			cout<<"Yes"<<"\n";
		}
		else{
			cout<<"No"<<"\n";
		}
	}
}
