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