#include <bits/stdc++.h>
using namespace std;
const long long maxn = 1e18;
char s[200] =
    " What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
char t[200] =
    " What are you doing while sending "
    "? Are you busy? Will you send "
    "?";
long long lens[100005] = {0};
void pr(long long n, long long k) {
  if (n == 0) {
    printf("%c", s[k]);
  } else if (lens[n] == 0) {
    if (k <= 34 * n) {
      printf("%c", t[(k - 1) % 34 + 1]);
    } else
      pr(n - 1, k - 34);
  } else if (k <= 34)
    printf("%c", t[k]);
  else if (k <= 34 + lens[n - 1]) {
    pr(n - 1, k - 34);
  } else if (k <= 34 + lens[n - 1] + 32)
    printf("%c", t[k - lens[n - 1]]);
  else if (k <= 34 + lens[n - 1] + 32 + lens[n - 1])
    pr(n - 1, k - 66 - lens[n - 1]);
  else
    printf("%c", t[k - 2 * lens[n - 1]]);
}
int main() {
  int q;
  scanf("%d", &q);
  for (int i = 68; i >= 34; --i) t[i] = t[i - 2];
  t[34] = t[35] = '"';
  for (int i = 68; i >= 66; --i) t[i] = t[i - 2];
  t[66] = t[67] = '"';
  lens[0] = 75;
  for (int i = 1; lens[i - 1] <= maxn; ++i) lens[i] = 68 + 2 * lens[i - 1];
  while (q--) {
    long long n, k;
    scanf("%lld%lld", &n, &k);
    if (lens[n] > 0 && k > lens[n]) {
      printf(".");
      continue;
    } else
      pr(n, k);
  }
  return 0;
}
