#include <bits/stdc++.h>
using namespace std;
const int N = 1000005;
void load() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int x, n, m;
    scanf("%d%d%d", &x, &n, &m);
    while (x > 0 && n > 0) {
      if (x / 2 + 10 >= x) break;
      x = x / 2 + 10;
      n--;
      if (x <= 0) {
        printf("YES\n");
        break;
      }
    }
    if (x <= 0) continue;
    while (1) {
      if (x <= 0) {
        printf("YES\n");
        break;
      }
      if (n > 0 && m > 0) {
        if (x / 2 + 10 <= x - 10) {
          x = x / 2 + 10;
          n--;
        } else {
          x = x - 10;
          m--;
        }
      } else if (n > 0) {
        x = x / 2 + 10;
        n--;
      } else if (m > 0) {
        x = x - 10;
        m--;
      } else {
        printf("NO\n");
        break;
      }
    }
  }
}
void solve() {}
int main(void) {
  load();
  solve();
  return 0;
}
