#include <bits/stdc++.h>
using namespace std;
inline void Fail() {
  printf("0");
  exit(0);
}
const int maxn = 100005;
long long len[maxn];
int q, n;
long long k;
string f0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string a = "What are you doing while sending ";
string b = "? Are you busy? Will you send ";
string ans;
void solve(int id, long long pos) {
  if (!id) {
    ans += f0[pos];
    return;
  }
  if (pos < a.size()) {
    ans += a[pos];
    return;
  }
  pos -= a.size();
  if (pos < len[id - 1]) {
    solve(id - 1, pos);
    return;
  }
  pos -= len[id - 1];
  if (pos < b.size()) {
    ans += b[pos];
    return;
  }
  pos -= b.size();
  if (pos < len[id - 1]) {
    solve(id - 1, pos);
    return;
  }
  pos -= len[id - 1];
  if (pos == 0)
    ans += '"';
  else
    ans += '?';
}
int main() {
  a += '"';
  b += '"';
  b = '"' + b;
  len[0] = f0.size();
  for (int(i) = 1; (i) <= 55; i++)
    len[i] = len[i - 1] * 2 + a.size() + b.size() + 2;
  for (int i = 56; i <= 100000; i++) len[i] = len[i - 1];
  scanf("%d", &q);
  while (q--) {
    scanf("%d%I64d", &n, &k);
    k--;
    if (k >= len[n])
      ans += '.';
    else
      solve(n, k);
  }
  printf("%s", ans.c_str());
  return 0;
}
