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