#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef long double ld;

typedef pair<int, int> pi;
typedef pair<ll,ll> pl;

typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;

#define loop(i,a,n) for(int i=a;i<n;i++)
#define rloop(i,n,a) for(int i=n-1;i>=a;i--)

#define all(x) x.begin(),x.end()
#define ins insert
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define inf INT_MAX
#define ninf INT_MIN
const int mod = 1e9 + 7;
const int N = 1e5 + 4;
/*
bool cmp(const pair<string,int> &a, const pair<string,int> &b){
if(a.second < b.second)
return true;
if(a.second == b.second){
return (a.first >= b.first);
}
return false;
}
*/
/*SET
*set.rbegin()--> getting last element of set
it=--set.end()--> pointer to last element
*/


int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
   int t;
   cin>>t;
   while(t--){
    int w,h;
    ll n;
    cin>>w>>h>>n;
    ll ans=1;
    while(w%2==0){
        ans=2*ans;
        w=w/2;
    }
    while(h%2==0){
        ans=2*ans;
        h=h/2;
    }
    if(ans>=n){
        cout<<"YES\n";
    }
    else{
        cout<<"NO\n";
    }

   }


}
