#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int x, n, m;
    cin >> x >> n >> m;
    while (n > 0 && x > 20) {
      x = x / 2 + 10;
      n--;
    }
    x -= (m * 10);
    x > 0 ? cout << "NO" : cout << "YES";
    cout << "\n";
  }
  return 0;
}
