#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long v = 0, f = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) v = v * 10 + c - 48, c = getchar();
  return v * f;
}
const long long INF = 2e18;
string f0, f1;
long long len[1000000];
void work() {
  int n = read();
  long long k = read();
  for (int i = n; i >= 1; i--) {
    if (k <= 34) {
      printf("%c", f1[k]);
      return;
    }
    k -= 34;
    if (k <= len[i - 1]) continue;
    k -= len[i - 1];
    if (k <= 32) {
      printf("%c", f1[k + 34]);
      return;
    }
    k -= 32;
    if (k <= len[i - 1]) continue;
    k -= len[i - 1];
    if (k == 1) {
      printf("\"");
      return;
    }
    if (k == 2) {
      printf("?");
      return;
    }
    printf(".");
    return;
  }
  if (k > len[0])
    printf(".");
  else
    printf("%c", f0[k]);
}
int main() {
  int q = read();
  f0 = " What are you doing at the end of the world? Are you busy? Will you "
       "save us?";
  f1 = " What are you doing while sending \"\"? Are you busy? Will you send "
       "\"\"?";
  len[0] = 75;
  for (int i = 1; i <= 500000; i++) len[i] = min(len[i - 1] * 2 + 68, INF);
  while (q--) work();
  puts("");
}
