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