#include <bits/stdc++.h>
using namespace std;
long long t;
int32_t main() {
  std::cin >> t;
  while (t--) {
    long long x, n, m;
    cin >> x >> n >> m;
    while (x > 20 && n != 0) {
      x = floor(x / 2.00) + 10;
      n--;
    }
    while (x >= 0 && m != 0) {
      x -= 10;
      m--;
    }
    if (x <= 0) {
      cout << "YES" << endl;
    } else
      std::cout << "NO" << '\n';
  }
  return 0;
}
