# include <bits/stdc++.h>
using namespace std;
int main(){
        ios_base::sync_with_stdio(false);
        cin.tie(NULL);

    int t;
    cin>>t;
    while(t--){
        int w,h,n;
        cin>>w>>h>>n;
    
        int x=0,y=0;
         while(w%2==0 && w>=2){
             w/=2;
             x++;
         }
         while(h%2==0 && h>=2){
             h/=2;
             y++;
         }
         
         int ans=1<<(x+y);
         
         if(ans>=n)
         cout<<"yes";
         else cout<<"no";
        
        cout<<"\n";
    }
    return 0;
}