#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const char S[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
const char first[] = R"(What are you doing while sending ")";
const char second[] = R"("? Are you busy? Will you send ")";
const char third[] = R"("?)";
long long len[60];
void print(int n, long long k) {
  if (n == 0) return (void)putchar(S[k]);
  if (k < 34) return (void)putchar(first[k]);
  k -= 34;
  if (n > 53 || k < len[n - 1]) return print(n - 1, k);
  k -= len[n - 1];
  if (k < 32) return (void)putchar(second[k]);
  k -= 32;
  if (n > 53 || k < len[n - 1]) return print(n - 1, k);
  k -= len[n - 1];
  assert(k < 2);
  putchar(third[k]);
}
int main() {
  assert(strlen(first) == 34);
  assert(strlen(second) == 32);
  len[0] = strlen(S);
  for (int i = 1; i <= 53; ++i) len[i] = 68 + 2ll * len[i - 1];
  int q;
  scanf("%d", &q);
  while (q--) {
    int n;
    long long k;
    scanf("%d%lld", &n, &k);
    --k;
    if (n <= 53 && k >= len[n]) {
      putchar('.');
      continue;
    }
    print(n, k);
  }
  putchar('\n');
  return 0;
}
