#include <bits/stdc++.h>
using namespace std;
string a0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string st = "What are you doing while sending \"";
string md = "\"? Are you busy? Will you send \"";
string en = "\"?";
char solve(int n, long long k) {
  while (true) {
    if (n == 0) {
      if (k > a0.length()) {
        return '.';
      } else {
        return a0[k - 1];
      }
    }
    if (k <= 34) {
      return st[k - 1];
    } else {
      if (log2((k + 34 + 142) / 143) <= n - 1) {
        n = n - 1;
        k = k - 34;
      } else {
        if (k > pow(2ll, n) * 143 - 68) return '.';
        long long plength = pow(2ll, n - 1) * 143 - 68;
        if (k <= plength + 32 + 34) {
          return md[k - 34 - plength - 1];
        } else if (k <= plength + 32 + 34 + plength) {
          n = n - 1;
          k = k - 34 - plength - 32;
        } else {
          return en[k - 34 - plength - 32 - plength - 1];
        }
      }
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  int q;
  cin >> q;
  for (int i = 1; i <= q; i++) {
    int n;
    long long k;
    cin >> n >> k;
    cout << solve(n, k);
  }
}
