#include <bits/stdc++.h>
using namespace std;
string f0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string f1 =
    "What are you doing while sending ~~? Are you busy? Will you send ~~?";
long long len[100005];
char solve(long long n, long long k) {
  if (n == 0) return f0[k - 1];
  if (k <= 34) return f1[k - 1];
  k -= 34;
  if (k <= len[n - 1]) return solve(n - 1, k);
  k -= len[n - 1];
  if (k <= 32) return f1[k + 34 - 1];
  k -= 32;
  if (k <= len[n - 1]) return solve(n - 1, k);
  k -= len[n - 1];
  return f1[k + 34 + 32 - 1];
}
int main() {
  long long a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q;
  scanf("%lld", &a);
  len[0] = f0.size();
  for (i = 1;; i++) {
    len[i] = len[i - 1] * 2 + (long long)f1.size();
    if (len[i] > 1000000000000000000) break;
  }
  for (i = i + 1; i <= 100000; i++) {
    len[i] = len[i - 1];
  }
  string X = "";
  for (i = 1; i <= a; i++) {
    scanf("%lld %lld", &b, &c);
    if (c > len[b])
      X += '.';
    else
      X += solve(b, c);
  }
  for (i = 0; i < a; i++) {
    if (X[i] == '~') X[i] = '"';
  }
  printf("%s\n", X.c_str());
  return 0;
}
