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