#include<iostream>
using namespace std;
int main()
{
    int w,h,n,c=1,d=1,i,e,t;
    cin>>t;
    for(i=0;i<t;i++)
      {
          c=1;d=1;
          cin>>w>>h>>n;
          if(w%2!=0)
            {
                if(h%2!=0)
                  {
                      if(n==1)
                        cout<<"YES"<<endl;
                      else
                        cout<<"NO"<<endl;
                  }
                else
                  {
                      while(h%2==0)
                        {
                            h=h/2;
                            c=c*2;
                        }
                      if(c>=n)
                        cout<<"YES"<<endl;
                      else
                        cout<<"NO"<<endl;
                  }
            }
          else if(w%2==0)
            {
                if(h%2!=0)
                  {
                      while(w%2==0)
                        {
                            w=w/2;
                            c=c*2;
                        }
                      if(c>=n)
                        cout<<"YES"<<endl;
                      else
                        cout<<"NO"<<endl;
                  }
                else
                  {
                      while(w%2==0)
                        {
                            w=w/2;
                            c=c*2;
                        }
                      while(h%2==0)
                        {
                            h=h/2;
                            d=d*2;
                        }
                      e=c*d;
                      if(e>=n)
                        cout<<"YES"<<endl;
                      else
                        cout<<"NO"<<endl;
                  }
            }
      }
    return 0;
}
                    
          