#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, 1, 0, -1};
int fx[] = {1, 1, 0, -1, -1, -1, 0, 1};
int fy[] = {0, -1, -1, -1, 0, 1, 1, 1};
void fasterIO() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void fileIO() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
int T, x, n, m;
int VA();
int LS();
int main() {
  fasterIO();
  cin >> T;
  while (T--) {
    cin >> x >> n >> m;
    while (1) {
      if (n == 0 && m == 0) break;
      if (n == 0 && m != 0) {
        if (m * 10 >= x) {
          x = 0;
          break;
        }
        m = 0;
      } else if (m == 0 && n != 0) {
        break;
      } else {
        int a = VA();
        int b = LS();
        if (a < x) {
          n--;
          x = a;
        } else
          n = 0;
      }
    }
    if (x <= 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
int VA() { return (x / 2) + 10; }
int LS() { return x - 10; }
