#include<bits/stdc++.h>
#include <cstdarg>
#include <cstdint>
 
// @author : sam000013
 
#define int long long
#define PI 3.14159265
#define pb(x) push_back(x)
#define all(v) v.begin(), v.end()
// #define endl cout<<"\n"     
#define dbg(x) cout<<#x<<" "<<x<<endl;
// #define bye endl;return
#define uni 1.000000
#define ld long double
using namespace std;

const int mod = 1000000007;
template <typename T>
 
void show(vector<T> x)
{
    for (auto e : x)
    {
        cout << e << " ";
    }
    cout << "\n";
}
 
/*
 
*/

void solve(){
  int w,h,n;
  cin>>w>>h>>n;
  int ans = 1;
  while(w > 0){
      if(w&1){
          break;
      }else{
          ans= ans*2;
          w = w/2;
      }
  }
  while(h > 0){
      if(h&1){
          break;
      }else{
          ans = ans*2;
          h = h/2;
      }
  }
  if(ans >= n){
      cout<<"YES";
  }else{
      cout<<"NO";
  }cout<<endl;return;
}
signed main(){
    ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int t = 1;
    cin >> t;
    for (int i = 1; i <= t; i++){
        solve();
    }
    return 0;
}
