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