#include <bits/stdc++.h>
using namespace std;
inline bool isPerfectSquare(long double x) {
  long double sr = sqrt(x);
  return ((sr - floor(sr)) == 0);
}
const string letters = "abcdefghijklmnopqrstuvwxyz";
void solve() {
  long long x, n, m;
  cin >> x;
  cin >> n;
  cin >> m;
  while (n-- && x > 20) {
    x = int(floor(x / 2)) + 10;
  }
  if (x - 10 * m > 0)
    cout << "NO";
  else
    cout << "YES";
}
void template_multiple() {
  long long t;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
}
void template_single() {
  solve();
  cout << endl;
}
int main() {
  template_multiple();
  return 0;
}
