#include <bits/stdc++.h>
using namespace std;
long long int calc(int n, int m) {
  long long int a;
  a = 10 * m;
  while (n) {
    a = 2 * (a - 10) + 1;
    n--;
  }
  return a;
}
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int a, b, c;
    long long int x;
    cin >> a >> b >> c;
    if (c != 1) {
      x = calc(b, c);
      if (x >= a) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    } else {
      if (a <= 10) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    }
  }
}
