#include <bits/stdc++.h>
using namespace std;
char f0[] =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
char f[] =
    "What are you doing while sending \"\"? Are you busy? Will you send \"\"?";
long long len[100005];
char ans[20];
void init() {
  len[0] = strlen(f0);
  long long l = strlen(f);
  for (int i = 1; i <= 53; ++i) len[i] = len[i - 1] * 2 + l;
  for (int i = 54; i <= 100000; ++i) len[i] = len[53];
}
char dfs(int n, long long k) {
  if (n == 0) {
    if (k < len[0])
      return f0[k];
    else
      return '.';
  }
  if (k < 34) return f[k];
  k -= 34;
  if (k < len[n - 1]) return dfs(n - 1, k);
  k -= len[n - 1];
  if (k < 32) return f[k + 34];
  k -= 32;
  if (k < len[n - 1]) return dfs(n - 1, k);
  k -= len[n - 1];
  if (k < 2) return f[k + 66];
  return '.';
}
int main() {
  init();
  int n;
  long long k;
  int q;
  scanf("%d", &q);
  for (int i = 0; i < q; ++i) {
    scanf("%d%lld", &n, &k);
    k--;
    ans[i] = dfs(n, k);
  }
  ans[q] = 0;
  puts(ans);
  return 0;
}
