#include <bits/stdc++.h>
using namespace std;
string f0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string bg = "What are you doing while sending \"";
string md = "\"? Are you busy? Will you send \"";
string en = "\"?";
long long s[64];
long long len1 = bg.size() + md.size() + en.size();
char ch(long long n, long long k) {
  if (n < 55 && k >= s[n]) {
    return '.';
  }
  if (n == 0) {
    return f0[k];
  }
  if (k < bg.size()) {
    return bg[k];
  }
  k -= bg.size();
  if (n >= 55 || k < s[n - 1]) {
    return ch(n - 1, k);
  }
  k -= s[n - 1];
  if (k < md.size()) {
    return md[k];
  }
  k -= md.size();
  if (k < s[n - 1]) {
    return ch(n - 1, k);
  }
  k -= s[n - 1];
  return en[k];
}
int main() {
  int q;
  s[0] = f0.size();
  for (int i = 1; i < 55; ++i) {
    s[i] = len1 + 2 * s[i - 1];
  }
  cin >> q;
  while (q > 0) {
    long long n, k;
    cin >> n >> k;
    --k;
    cout << ch(n, k);
    --q;
  }
  return 0;
}
