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