#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int i, j, k, t;
  cin >> t;
  while (t--) {
    int x, n, m;
    cin >> x >> n >> m;
    if (x <= 10 * m) {
      cout << "YES"
           << "\n";
      continue;
    }
    while (n > 0) {
      x = (x / 2) + 10;
      n--;
    }
    while (m > 0) {
      x = x - 10;
      m--;
    }
    if (x > 0) {
      cout << "NO"
           << "\n";
    } else {
      cout << "YES"
           << "\n";
    }
  }
  return 0;
}
