#include <bits/stdc++.h>
using namespace std;
int main() {
  int test_num;
  cin >> test_num;
  for (int itr = 0; itr < test_num; itr++) {
    int x, a, b;
    cin >> x >> a >> b;
    int val = x;
    while (val > 19 && a > 0) {
      val = (val) / 2 + 10;
      a--;
    }
    while (val > 0 && b > 0) {
      val -= 10;
      b--;
    }
    if (val <= 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
