#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  ll t;
  cin >> t;
  while (t--) {
    ll x, n, m;
    cin >> x >> n >> m;
    while (x > 20 && n >= 1) {
      x = floor(x / 2) + 10;
      n--;
    }
    while (m--) {
      x = x - 10;
    }
    if (x <= 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
