#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
	ll t;
	cin>>t;
    //t=1;
	while(t--)
	{
	    ll n,m,k,j,i,y,x,z,a,b,c,d,o;
	    ll count=0,ans=1,maxi=LLONG_MIN,mini=LLONG_MAX,flag=0;
	    char ch;
	    vector<long long int> vecy,vect;
	    string str,strs;
	    map<ll,ll> mp;
	    stack <long long int> stck;
	    set<ll > se;
	    cin>>n>>m>>k;
	    n*=m;
	    while(n%2==0)
	    {
	        ans*=2;
	        n/=2;
	    }
	    if(ans>=k)
	    cout<<"YES\n";
	    else
	    cout<<"NO\n";
	}
}





