#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    int n, a, b;
    cin >> n >> a >> b;
    int flag = 0;
    while (n > 0) {
      if (b > 0 && (a == 0 || b * 10 >= n)) {
        n = n - 10;
        b--;
        flag = 1;
      }
      if (a > 0 && flag == 0) {
        a--;
        if (n % 2 == 0) {
          n = n / 2 + 10;
        } else
          n = n / 2 + 10.5;
      }
      if (a == 0 && b == 0) {
        break;
      }
    }
    if (n > 0) {
      cout << "NO" << endl;
    } else
      cout << "YES" << endl;
  }
}
