#include <bits/stdc++.h>
using namespace std;
int n, m1, m2, m3, q;
string x =
    "What are you doing at the end of the world? Are you busy? Will you "
    "save us?";
string xy1 = "What are you doing while sending \"";
string xy2 = "\"? Are you busy? Will you send \"";
string xy3 = "\"?";
long long len[100001];
char run(int n, long long k) {
  if (n == 0) {
    if (k < len[0])
      return x[k];
    else
      return '.';
  } else {
    if (k < m1)
      return xy1[k];
    else if (k < m1 + len[n - 1])
      return run(n - 1, k - m1);
    else if (k < m1 + len[n - 1] + m2)
      return xy2[k - m1 - len[n - 1]];
    else if (k < m1 + len[n - 1] + m2 + len[n - 1])
      return run(n - 1, k - m1 - len[n - 1] - m2);
    else if (k < len[n])
      return xy3[k - m1 - len[n - 1] * 2 - m2];
    else
      return '.';
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> q;
  n = x.length(), m1 = xy1.length(), m2 = xy2.length(), m3 = xy3.length();
  len[0] = n;
  for (int i = 1; i < 100001; i++)
    len[i] = min(len[i - 1] * 2 + m1 + m2 + m3, (1000000000LL * 1000000000LL));
  for (int i = 0; i < q; i++) {
    int nn;
    long long kk;
    cin >> nn >> kk;
    cout << run(nn, kk - 1);
  }
  cout << endl;
  return 0;
}
