#include <iostream>
#include <math.h>
#include <bits/stdc++.h>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
       int w,h,n,out1=0,out2=0;
       cin>>w>>h>>n;
       while(w/2>0)
       {
            if(w%2==0) { out1++; w /= 2; }
            else break;
       }

       while(h/2>0)
       {
           if(h%2==0) { out2++; h /= 2; }
            else break;
       }
       if((pow(2,out1))*(pow(2,out2))>=n) cout<<"YES"<<endl;
       else cout<<"NO"<<endl;
    }
}

