// author - sid
#include <bits/stdc++.h>
using namespace std;
#define pi 3.14159265359
#define endl '\n'
#define ll long long
#define in(i, a, b) for (ll i = a; i < b; i++)
#define ine(i, a, b) for (ll i = a; i <= b; i++)
#define MOD 1000000007
//#define TIME cerr << "\nTime elapsed: " << setprecision(5) << 1000.0 * clock() / CLOCKS_PER_SEC << "ms\n";

int main()
{
    ll int t;
    cin >> t;
    while (t--)
    {
        ll int w, h, n;
        ll int c = 0, k = 0;
        cin >> w >> h >> n;

        while (w % 2 != 1)
        {
            w = w / 2;
            //c += 2;
            c++;
        }
        while (h % 2 != 1)
        {
            h = h / 2;
            //c += 2;
            k++;
        }
        ll int ans = pow(2, c) * pow(2, k);
        if (ans >= n)
        {
            cout << "YES" << endl;
        }
        else
        {
            cout << "NO" << endl;
        }
    }

    return 0;
}