#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 p1 = "What are you doing while sending #",
       p2 = "#? Are you busy? Will you send #", p3 = "#?";
long long tot[100002];
char fun(int n, long long k) {
  if (n == 0) {
    if (tot[0] < k) return '.';
    return f0[k - 1];
  }
  if (k <= p1.length()) return p1[k - 1];
  k -= p1.length();
  if (k <= tot[n - 1] || n > 53) return fun(n - 1, k);
  k -= tot[n - 1];
  if (k <= p2.length()) return p2[k - 1];
  k -= p2.length();
  if (k <= tot[n - 1] || n > 53) return fun(n - 1, k);
  k -= tot[n - 1];
  if (k <= p3.length()) return p3[k - 1];
  return '.';
}
int main() {
  int n, q;
  long long k;
  tot[0] = f0.length();
  for (int i = 1; i <= 53; i++) {
    tot[i] = p1.length() + tot[i - 1] + p2.length() + tot[i - 1] + p3.length();
  }
  scanf("%d", &q);
  while (q--) {
    scanf("%d%lld", &n, &k);
    char ans = fun(n, k);
    printf("%c", (ans == '#' ? '"' : ans));
  }
  return 0;
}
