#include <bits/stdc++.h>
using namespace std;
using namespace std;
string t0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string p1 = "What are you doing while sending \"";
string p2 = "\"? Are you busy? Will you send \"";
string p3 = "\"?";
long long l0, l1, l2, l3;
long long q;
long long n, k;
long long fn[100005], lim;
void pre() {
  fn[0] = l0;
  for (long long i = (long long)(1); i <= (long long)(100); i++) {
    fn[i] = 68 + 2 * fn[i - 1];
    if (fn[i] >= k) {
      lim = i;
      break;
    }
  }
  for (long long i = (long long)(lim + 1); i <= (long long)(100000); i++)
    fn[i] = fn[lim];
}
char func(long long n, long long &k) {
  if (n == 0) {
    if (k <= l0)
      return t0[k - 1];
    else {
      k -= l0;
      return '.';
    }
  }
  if (k <= l1) return p1[k - 1];
  k -= l1;
  if (fn[n - 1] >= k) return func(n - 1, k);
  k -= fn[n - 1];
  if (k <= l2) return p2[k - 1];
  k -= l2;
  if (fn[n - 1] >= k) return func(n - 1, k);
  k -= fn[n - 1];
  if (k <= l3) return p3[k - 1];
  k -= l3;
  return '.';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  l0 = t0.length();
  l1 = p1.length();
  l2 = p2.length();
  l3 = p3.length();
  cin >> q;
  while (q--) {
    cin >> n >> k;
    pre();
    cout << func(n, k);
  }
  return 0;
}
