#include <cmath>      #include <algorithm>   #include <iostream>   #include <string>   #include <vector>      using namespace std;      typedef long double ld;   typedef vector<int> vi;   typedef long long ll;      constexpr ld EPS = numeric_limits<ld>::epsilon();   constexpr int INF = numeric_limits<int>::max() - 10;   constexpr ll LINF = numeric_limits<ll>::max() - 10;      int w;   int h;   int n;      void input() {     cin >> w >> h >> n;   }      void solve() {     int alpha = (w & -w);     int beta = (h & -h);        string ans =  NO ;     if (alpha * beta >= n)       ans =  YES ;        cout << ans <<   n ;   }      int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);        cout.precision(16);     cout << fixed;        int _times = 1;      #ifdef _DEBUG     freopen( input.txt ,  r , stdin);     freopen( output.txt ,  w , stdout);   #endif        cin >> _times;        while (_times--) {       input();       solve();     }   }   