#include <bits/stdc++.h>
using namespace std;
const int maxn = 100000 + 5;
const int64_t maxk = 2e18 + 5;
const char* f0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
const char* f1 = "What are you doing while sending \"";
const char* f2 = "\"? Are you busy? Will you send \"";
const char* f3 = "\"?";
int64_t len[maxn];
char dfs(int n, int64_t k) {
  if (k > len[n])
    return '.';
  else {
    if (n == 0) return f0[k - 1];
    if (k <= strlen(f1)) return f1[k - 1];
    k = k - strlen(f1);
    if (k <= len[n - 1]) return dfs(n - 1, k);
    k = k - len[n - 1];
    if (k <= strlen(f2)) return f2[k - 1];
    k = k - strlen(f2);
    if (k <= len[n - 1]) return dfs(n - 1, k);
    k = k - len[n - 1];
    return f3[k - 1];
  }
}
int main() {
  len[0] = strlen(f0);
  for (int i = 1; i < maxn; i++) {
    len[i] = 2 * len[i - 1] + strlen(f1) + strlen(f2) + strlen(f3);
    if (len[i] >= maxk) {
      len[i] = maxk;
    }
  }
  int N;
  scanf("%d", &N);
  while (N--) {
    int n;
    int64_t k;
    scanf("%d %I64d", &n, &k);
    printf("%c", dfs(n, k));
  }
  printf("\n");
  return 0;
}
