#include <iostream>

using namespace std;

int main()
{
    int t;
    cin>>t;
    for(int i=0;i<t;i++){
       int a;
       int g=1;
       int y=1;
    int b;
    int n;
    cin>>a>>b>>n;
    while(a%2==0)
    {
        g*=2;
        a=a/2;
    }
    while(b%2==0)
    {
        y*=2;
        b=b/2;
    }
    int sum=g*y;
    if(sum>=n)
    {
        cout<<"YES"<<endl;
    }
    else { cout<<"NO"<<endl; }

    }

}
