#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 5;
const long long INF = 1e18;
string s0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string s1 =
    "What are you doing while sending \"\"? Are you busy? Will you send \"\"?";
long long a[maxn];
int i;
void f(int n, long long k) {
  if (n == 0) {
    printf("%c", s0[k - 1]);
    return;
  }
  if (k <= 34) {
    printf("%c", s1[k - 1]);
    return;
  }
  if (n > i || k <= 34 + a[n - 1]) {
    f(n - 1, k - 34);
    return;
  }
  if (k <= 66 + a[n - 1]) {
    printf("%c", s1[k - 1 - a[n - 1]]);
    return;
  }
  if (k <= 66 + 2 * a[n - 1]) {
    f(n - 1, k - a[n - 1] - 66);
    return;
  } else {
    printf("%c", s1[k - 1 - 2 * a[n - 1]]);
    return;
  }
}
int main() {
  int q, n;
  long long k;
  memset(a, 0, sizeof(a));
  a[0] = 75;
  for (i = 1;; i++) {
    a[i] = 2 * a[i - 1] + 68;
    if (a[i] >= INF) break;
  }
  while (~scanf("%d", &q)) {
    while (q--) {
      scanf("%d%I64d", &n, &k);
      if (n <= i && k > a[n])
        printf(".");
      else
        f(n, k);
    }
    puts("");
  }
  return 0;
}
