#include <iostream>
#include <fstream>
#include <cstdlib>
#include <vector>
#include <stack>
#include <queue>
#include <unordered_set>
#include <set>
#include <map>
#include <algorithm>
#include <math.h>
#include <unordered_map>
#include <bits/stdc++.h>
#include <string>
using namespace std;

#define ll long long
#define ull unsigned long long
#define pb push_back
#define pll pair<long long, long long>
#define pi pair<int, int>
#define vi vector<int>
#define vll vector<ll>
#define vb vector<bool>
#define vpll vector<pll>
#define vc vector<char>
#define vvc vector<vc>
#define vpi vector<pi>
#define vvi vector<vi>
#define vvpll vector<vpll>
#define vvll vector<vll>
#define vvb vector<vb>
#define vvpi vector<vpi>
#define FOR(i, start, finish) for(int i = start; i <= finish; i++)
#define ROF(i, start, finish) for(int i = start; i >= finish; i--)
#define err 1e-7
const int INF = 10000000;

int t;
int w, h, n;

bool solve() {
    cin >> w >> h >> n;
    
    int ans(1);
    
    while(w%2 == 0) {
        w/= 2;
        ans *= 2;
    }
    while(h%2 == 0) {
        h /= 2;
        ans *= 2;
    }
    
    return ans >= n;
}

int main() {
    cin >> t;
    
    vb ans;
    
    while(t--) {
        ans.pb(solve());
    }
    
    for(auto i : ans) {
        if(i) cout << "YES\n";
        else cout << "NO\n";
    }
}

