#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, aux1, aux2;
  int x, n, m;
  cin >> t;
  while (t--) {
    cin >> x >> n >> m;
    int aux = x;
    int aux1 = m;
    while (aux1--) {
      aux = aux - 10;
    }
    if (aux <= 0) {
      cout << "YES" << endl;
    } else {
      while (n--) {
        x = (x / 2) + 10;
      }
      while (m--) {
        x = x - 10;
      }
      if (x <= 0)
        cout << "YES" << endl;
      else {
        cout << "NO" << endl;
      }
    }
  }
}
