#include <bits/stdc++.h>
namespace suf {
unsigned int nod(const long long &x) {
  if (x < 0) return nod(-x);
  return floor(log10(x)) + 1;
}
long long gcd(const long long &x, const long long &y) {
  if (!x) return y < 0 ? -y : y;
  return gcd(y % x, x);
}
void fs(long long &x) {
  bool negative = false;
  register int c;
  x = 0;
  c = getchar();
  if (c == '-') {
    negative = true;
    c = getchar();
  }
  for (; (c > 47 && c < 58); c = getchar()) x = x * 10 + c - 48;
  if (negative) x *= -1;
}
}  // namespace suf
using namespace suf;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  unsigned int t;
  cin >> t;
  for (unsigned int i = 0; i < t; i++) {
    unsigned int x, n, m;
    cin >> x >> n >> m;
    while (x > 20 and n) {
      x = x / 2 + 10;
      n--;
    }
    if (m >= ceil(x / 10.0))
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s." << endl;
  ;
  return 0;
}
