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