#include <bits/stdc++.h>
using namespace std;
using f = float;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using vi = vector<int>;
using pii = pair<int, int>;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int x, n, m;
    int flag_t = 0;
    cin >> x >> n >> m;
    for (int j = 0; j < n; j++) {
      if (x <= 20) break;
      x = x / 2 + 10;
    }
    for (int j = 0; j < m; j++) {
      x -= 10;
      if (x <= 0) {
        flag_t = 1;
        break;
      }
    }
    if (flag_t == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
