#include <bits/stdc++.h>
char g[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
char h0[] = "What are you doing while sending \"";
char h1[] = "\"? Are you busy? Will you send \"";
char h2[] = "\"?";
int g_l, h0_l, h1_l, h2_l;
long long f[101010];
long long limit = 53;
void init() {
  g_l = strlen(g);
  h0_l = strlen(h0);
  h1_l = strlen(h1);
  h2_l = strlen(h2);
  f[0] = g_l;
  for (int i = (1), i_END_ = (limit); i <= i_END_; ++i)
    f[i] = f[i - 1] * 2 + h0_l + h1_l + h2_l;
}
void print(int n, long long k) {
  if (n == 0) {
    if (k < g_l)
      printf("%c", g[k]);
    else
      printf(".");
    return;
  }
  if (n > limit) {
    if (k < h0_l)
      printf("%c", h0[k]);
    else
      print(n - 1, k - h0_l);
  } else {
    if (k < h0_l)
      printf("%c", h0[k]);
    else if (k < h0_l + f[n - 1])
      print(n - 1, k - h0_l);
    else if (k < h0_l + f[n - 1] + h1_l)
      printf("%c", h1[k - h0_l - f[n - 1]]);
    else if (k < h0_l + f[n - 1] + h1_l + f[n - 1])
      print(n - 1, k - h0_l - f[n - 1] - h1_l);
    else if (k < h0_l + f[n - 1] + h1_l + f[n - 1] + h2_l)
      printf("%c", h2[k - h0_l - f[n - 1] - h1_l - f[n - 1]]);
    else
      printf(".");
  }
}
int main() {
  int q, n;
  long long k;
  init();
  scanf("%d", &q);
  for (int i = (1), i_END_ = (q); i <= i_END_; ++i) {
    scanf("%d%lld", &n, &k);
    print(n, k - 1);
  }
  return 0;
}
