#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long x, n, m;
    cin >> x >> n >> m;
    int tmp = x / 2;
    while ((x / 2.0) >= 10 && n > 0) {
      x /= 2;
      x += 10;
      n--;
    }
    while (m--) {
      x -= 10;
    }
    if (x > 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
