#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using namespace std::chrono;
bool sortbysecdesc(const pair<ll, ll> &a, const pair<ll, ll> &b) {
  return a.second > b.second;
}
ll binpow(ll a, ll b) {
  if (b == 0) return 1;
  ll res = binpow(a, b / 2);
  if (b % 2)
    return res * res * a;
  else
    return res * res;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int x, n, m;
    cin >> x >> n >> m;
    if (x <= 10 * m)
      cout << "YES" << endl;
    else {
      for (int i = 0; i < n; i++) {
        x = x / 2;
        x += 10;
      }
      for (int i = 0; i < m; i++) {
        x -= 10;
      }
      if (x <= 0)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
