#include <bits/stdc++.h>
using namespace std;


void solve(){

int l,b,n,res=1;
cin>>l>>b>>n;

while(l%2==0){
    l/=2;
    res*=2;
}

while(b%2==0){
    b/=2;
    res*=2;
}

cout<<(res>=n?"YES\n":"NO\n");

}
int main()
{
  int t;
  cin>>t;

  while(t--){

    solve();
  }
}