#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;
int x, m, n;
bool solve() {
  cin >> x >> n >> m;
  while (n && x > 0) {
    int y = x / 2 + 10;
    if (y >= x) break;
    x = y;
    n--;
  }
  while (m && x > 0) {
    x = x - 10;
    m--;
  }
  return x <= 0;
}
int main() {
  int t;
  cin >> t;
  while (t--) cout << (solve() ? "YES" : "NO") << endl;
}
