#include <bits/stdc++.h>
using namespace std;
int arr[100000];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int x, a, l;
    cin >> x >> a >> l;
    int now;
    while (a > 0 || l > 0) {
      if (x <= 0) {
        cout << "YES" << endl;
        goto sesh;
      }
      now = x / 2 + 10;
      if (x <= now) {
        if (l > 0) {
          x -= 10;
          l--;
        } else {
          cout << "NO" << endl;
          goto sesh;
        }
      } else {
        if (a > 0) {
          x = x / 2 + 10;
          a--;
        } else if (a == 0 && l > 0) {
          x -= 10;
          l--;
        } else if (a == 0 && l == 0) {
          cout << "NO" << endl;
          goto sesh;
        }
      }
    }
    if (x > 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  sesh:;
  }
}
