#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int i,a=1;
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{
    while(w%2==0 || h%2==0){
        if(w%2==0){
            w/=2;
            a=a*2;}
        else if(h%2==0){
            h/=2;
            a=a*2;}
    }
    if(a>=n)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}
        }
}
