#include<bits/stdc++.h>
using namespace std;
int main(){
    long long int t;cin>>t;
    while(t--){
        long long int w,h,n;cin>>w>>h>>n;
        if(w%2!=0 && h%2!=0 && n>1){
            cout<<"NO"<<endl;
        }
        else if(w%2!=0 && h%2!=0 && n==1){
            cout<<"YES"<<endl;
        }
        else{
            long long int c=0;
            while(w%2==0){
                c+=1;
                w=w/2;
            }
            while(h%2==0){
                c+=1;
                h=h/2;
            }
            if(pow(2,c)>=n)cout<<"YES"<<endl;
            else cout<<"NO"<<endl;
        }
    }
    return 0;
}