#include <bits/stdc++.h>
using namespace std;
char F[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
char A[] = "What are you doing while sending \"";
char B[] = "\"? Are you busy? Will you send \"";
char C[] = "\"?";
const long long FL = strlen(F);
const long long AL = strlen(A);
const long long BL = strlen(B);
const long long CL = strlen(C);
const long long ALL = FL + AL + BL + CL;
char solve(long long a, long long b) {
  if (a == 0) {
    if (b > FL)
      return '.';
    else
      return F[(b - 1) % FL];
  }
  if (b <= AL) return A[(b - 1) % AL];
  if (a >= 57) return solve(a - 1, b - AL);
  long long lastL = 1;
  lastL <<= (a - 1);
  lastL *= ALL;
  lastL -= (AL + BL + CL);
  if (b <= AL) return A[(b - 1) % AL];
  b -= AL;
  if (b <= lastL) return solve(a - 1, b);
  b -= lastL;
  if (b <= BL) return B[(b - 1) % BL];
  b -= BL;
  if (b <= lastL) return solve(a - 1, b);
  b -= lastL;
  if (b <= CL) return C[(b - 1) % CL];
  return '.';
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    long long n, m;
    scanf("%I64d%I64d", &n, &m);
    printf("%c", solve(n, m));
  }
  printf("\n");
  return 0;
}
