#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <unordered_set>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <iomanip>
using namespace std;
#define dracarys ios_base :: sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long

int main() {
    dracarys
    int n, w, h, m;
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> w >> h >> m;
        int cnt = 1;
        while ((w % 2 == 0) || (h % 2 == 0)) {
            if (w % 2 == 0) {
                w = w / 2;
                cnt = cnt * 2;
            }
            if (h % 2 == 0) {
                h = h / 2;
                cnt = cnt * 2;
            }
        }
        if (cnt >= m) {
            cout << "Yes" << endl;
        }
        else {
            cout << "No" << endl;
        }
    }

    return 0;
}
