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