#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int a, n, m;
    cin >> a >> n >> m;
    while (n > 0 && a > 20) {
      a = a / 2 + 10;
      n--;
    }
    while (m > 0) {
      a = a - 10;
      m--;
    }
    if (a <= 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
