#include <bits/stdc++.h>

using namespace std;

bool cutPaper(int n, int x, int y)
{
    int count = 1;

    while ( x % 2 == 0 || y % 2 == 0 )
    {   
        if ( x % 2 == 0 ){
            x /= 2;
            count *= 2; 
        }else if ( y % 2 == 0 )  {
            y /= 2; 
            count *= 2; 
        }

        if ( count >= n )
            return true;   
    }

    if ( count >= n )
            return true;   

    return false;
    
}
int main()
{

    int t;
    cin >> t;

    while (t-- > 0)
    {
        int n, x, y;

        cin >> x >> y >> n;

        if (cutPaper(n, x, y))
        {
            cout << "YES" << endl;
        }
        else
        {
            cout << "NO" << endl;
        }
    }
}