#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t, x, n, m, h;
  cin >> t;
  while (t--) {
    cin >> x >> n >> m;
    int h1, h2;
    int i, j, count = 0;
    i = n;
    j = m;
    if (m == 0) {
      cout << "NO\n";
      continue;
    } else if (x - 10 * m <= 0) {
      cout << "YES\n";
      continue;
    }
    while (i--) {
      x = ((int)(x / 2)) + 10;
    }
    x = x - 10 * j;
    if (x <= 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
