#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, x, n, m;
  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)
      puts("YES");
    else
      puts("NO");
  }
}
