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


 