#include <iostream>

using namespace std;

int main() {
  int T; cin >> T;
  while(T--) {
    int A, B, C;
    cin >> A >> B >> C;
    int c0 = 1, c1 = 1;
    while(A%2 == 0) A/=2, c0*=2;
    while(B%2 == 0) B/=2, c1*=2;
    cout << (((c0*c1)>=C)?("YES"):("NO")) << endl;
  }
}
