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