#include <bits/stdc++.h>
using namespace std;
const char s0[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
const char* cau[] = {"What are you doing while sending \"",
                     "\"? Are you busy? Will you send \"", "\"?"};
long long f[1005];
int main() {
  f[0] = strlen(s0);
  int len[3];
  for (int i = 0; i < 3; i++) len[i] = strlen(cau[i]);
  int cs = 0;
  while (1) {
    ++cs;
    f[cs] = f[cs - 1] * 2 + len[0] + len[1] + len[2];
    if (f[cs] >= 1000000000000000000LL) break;
  }
  int q;
  scanf("%d", &q);
  while (q--) {
    int n;
    long long k;
    scanf("%d%lld", &n, &k);
    if (n <= cs && k > f[n]) {
      putchar('.');
      continue;
    }
    int ans = 0;
    while (n > 0) {
      if (k <= len[0]) {
        ans = cau[0][k - 1];
        break;
      }
      k -= len[0];
      if (n - 1 > cs) {
        --n;
        continue;
      }
      if (k <= f[n - 1]) {
        --n;
        continue;
      }
      k -= f[n - 1];
      if (k <= len[1]) {
        ans = cau[1][k - 1];
        break;
      }
      k -= len[1];
      if (n - 1 > cs) {
        --n;
        continue;
      }
      if (k <= f[n - 1]) {
        --n;
        continue;
      }
      k -= f[n - 1];
      if (k <= len[2]) {
        ans = cau[2][k - 1];
        break;
      }
      k -= len[2];
      --n;
    }
    if (ans == 0) ans = s0[k - 1];
    putchar(ans);
  }
}
