#include <bits/stdc++.h>
using namespace std;
const long long c18 = 1e18;
char f[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
char s1[] = "What are you doing while sending \"";
char s2[] = "\"? Are you busy? Will you send \"";
char s3[] = "\"?";
int q, n;
long long len[100001], x;
int main() {
  int fl = strlen(f);
  int l1 = strlen(s1);
  int l2 = strlen(s2);
  int l3 = strlen(s3);
  len[0] = fl;
  for (int i = (1); i <= (100000); ++i) {
    len[i] = l1 + l2 + l3 + 2 * len[i - 1];
    if (len[i] > c18) {
      for (int j = (i); j <= (100000); ++j) len[j] = c18;
      break;
    }
  }
  scanf("%d", &q) ?: 0;
  for (int i = 0; i < (q); ++i) {
    scanf("%d%lld", &n, &x) ?: 0;
    if (x > len[n]) {
      putchar('.');
      continue;
    }
    while (n > 0) {
      if (x <= l1) {
        putchar(s1[x - 1]);
        goto koniec;
      }
      x -= l1;
      if (x <= len[n - 1]) {
        n--;
        continue;
      }
      x -= len[n - 1];
      if (x <= l2) {
        putchar(s2[x - 1]);
        goto koniec;
      }
      x -= l2;
      if (x <= len[n - 1]) {
        n--;
        continue;
      }
      x -= len[n - 1];
      if (x <= l3) {
        putchar(s3[x - 1]);
        goto koniec;
      }
      assert(0);
    }
    putchar(f[x - 1]);
    continue;
  koniec:;
  }
}
