#include <bits/stdc++.h>
using ll = long long;
using namespace std;
void D() {
  ll h, n, m;
  cin >> h >> n >> m;
  ll k = min(n, m);
  bool fl = false;
  while (h > 0 && n > 0 && m > 0) {
    if (h / 2 + 10 < h) {
      h = h / 2 + 10;
      n--;
      fl = 0;
    } else {
      h -= 10;
      m--;
      fl = 1;
    }
  }
  if (n > 0 && h > 0) {
    while (n) {
      h = h / 2 + 10;
      n--;
    }
  }
  if (m > 0 && h > 0) {
    while (m) {
      m--;
      h -= 10;
    }
  }
  cout << (h <= 0 ? "YES" : "NO") << "\n";
  ;
}
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout.precision(0);
  cout << fixed;
  ll n, m, k, pt(0), ct(0), x, y;
  ll t = 1;
  cin >> t;
  while (t--) {
    D();
  }
}
