#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d;
    cin >> a >> b >> c;
    while (a > 20 && b > 0) {
      a = a / 2;
      a += 10;
      b--;
    }
    if (a > c * 10)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
