#include <bits/stdc++.h>
using namespace std;
int x, n, m;
void dodivision() {
  x = x / 2 + 10;
  n--;
}
void dostrike() {
  x -= 10;
  m--;
}
int main() {
  int cnt;
  cin >> cnt;
  while (cnt--) {
    cin >> x >> n >> m;
    while (x > 20 && n >= 1) dodivision();
    while (m >= 1) dostrike();
    if (x > 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
