///Exercitiul 6
#include <iostream>
#include <fstream>
using namespace std;
 
int main() {
    int t;
    cin >> t;
    while(t--) {
        long long w, h, n;
        cin >> w >> h >> n;
        if(n == 1) {
            cout << "YES\n";
            continue;
        }
        long long nr = 1;
        while(w % 2 == 0) {
            nr *= 2;
            w /= 2;
        }
        while(h % 2 == 0) {
            nr *= 2;
            h /= 2;
        }
        if(nr >= n) {
            cout << "YES\n";
        } else {
            cout << "NO\n";
        }
    }
    return 0;
}
 