#include<bits/stdc++.h>
#define f(i,a,b) for(int i=a;i<b;i++)
#define ll long long
#define pb push_back
#define mp make_pair
#define vp vector<pair<int,int>>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int t;
    cin>>t;
    while(t--)
    {
      int w,h,n,count=1;
      string ans;
      cin>>w>>h>>n;
      
      if(n==1)
      {
          cout<<"YES"<<endl;
          continue;
      }
      else
      {
          if(w%2!=0 && h%2!=0)
          {
              cout<<"NO"<<endl;
              continue;
          }
          else
          {
              int p=1;
              while(w%2==0 || h%2==0)
            {
                if(w%2==0)
            w=w/2;
            else if(h%2==0)
            h=h/2;
            
            p*=2;
            
            }
            if(p>=n)
      cout<<"YES"<<endl;
      else
      cout<<"NO"<<endl;
          }
      }
      
      
     
	//cout<<endl;  
    }
    return 0;
}