#include <bits/stdc++.h>
using namespace std;
string basic =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string st = "What are you doing while sending \"";
string se = "\"? Are you busy? Will you send \"";
string ed = "\"?";
int pt1 = st.length();
int pt2 = se.length();
int pt3 = ed.length();
long long f[100001] = {0};
void func(long long f[], int n, long long k) {
  if (f[n] < k)
    cout << ".";
  else if (n == 0) {
    cout << basic[k - 1];
  } else {
    if (k <= pt1) {
      k--;
      cout << st[k];
      return;
    } else if (k <= f[n - 1] + pt1) {
      func(f, n - 1, k - pt1);
    } else if (k <= f[n - 1] + pt1 + pt2) {
      k--;
      cout << se[k - pt1 - f[n - 1]];
    } else if (k <= 2 * f[n - 1] + pt1 + pt2) {
      func(f, n - 1, k - f[n - 1] - pt1 - pt2);
    } else {
      k--;
      cout << ed[k - 2 * f[n - 1] - pt1 - pt2];
    }
  }
  return;
}
int main() {
  int q;
  cin >> q;
  int n;
  long long k;
  f[0] = basic.length();
  for (int i = 1; i < 100001; i++) {
    f[i] = 2 * f[i - 1] + 68;
    if (f[i] > 1e18) f[i] = 1e18;
  }
  while (q--) {
    cin >> n >> k;
    func(f, n, k);
  }
}
