#include <bits/stdc++.h>
using namespace std;
int t;
int x, n, m;
int main() {
  cin >> t;
  while (t--) {
    cin >> x >> n >> m;
    while (x > 20 && n) {
      x = x / 2 + 10;
      n--;
    }
    while (m) x -= 10, m--;
    if (x > 0)
      printf("NO\n");
    else
      printf("YES\n");
  }
}
