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