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