#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int x, n, m;
    scanf("%d%d%d", &x, &n, &m);
    while (n-- && x >= 20) x = floor(1.0 * x / 2) + 10;
    while (m--) x -= 10;
    printf(x <= 0 ? "YES\n" : "NO\n");
  }
  return 0;
}
