#include <bits/stdc++.h>
using namespace std;
long long int a[500005], b[500005];
int main() {
  int i, j, k, l, x, y, z, m, n, t;
  cin >> t;
  while (t--) {
    cin >> x >> y >> z;
    while (x > 20 && y) {
      x = x / 2;
      x += 10;
      y--;
    }
    while (x >= 0 && z) {
      x = x - 10;
      z--;
    }
    x = max(0, x);
    if (x)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
