#include <bits/stdc++.h>
using namespace std;
int n, t, x, m, cnt, sum = 0;
int main() {
  cin >> t;
  while (t--) {
    cin >> x >> n >> m;
    if (x <= 0) cout << "YES" << endl;
    if (x < 19) goto here;
    while (x > 0 && n > 0) {
      n--;
      x = x / 2;
      x = x + 10;
    }
    if (x <= 0) cout << "YES" << endl;
  here:
    while (x > 0 && m > 0) {
      m--;
      x = x - 10;
    }
    if (x <= 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
