#include <iostream>
using namespace std;
#define ll long long
int main() {
  ll t,w,h,n;
  cin>>t;
  int count=1;
  while(t--){
	  count = 1;
	  cin>>w>>h>>n;
	  while(w!=1&&w%2 == 0){
		  count *=2;
		  w = w/2;
		  if(count >= n){
			  break;
		  }
	  }
	  while(h!=1&&h%2 == 0){
		  count *=2;
		  h = h/2;
		  if(count >= n){
			  break;
		  }
	  }
	  if(count >= n){
		  cout<<"YES"<<endl;
	  }else
	  {
		  cout<<"NO"<<endl;
	  }
  }
}