#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 f1a = "What are you doing while sending \"";
string f1b = "\"? Are you busy? Will you send \"";
string f1c = "\"?";
long long int a, b, c;
vector<long long int> len;
char fans(long long int n, long long int k) {
  if (n < 56 && k > len[n]) return '.';
  if (n == 0) return f0[k - 1];
  if (k <= a) return f1a[k - 1];
  k -= a;
  if (k <= len[n - 1] || n > 56) return fans(n - 1, k);
  k -= len[n - 1];
  if (k <= b) return f1b[k - 1];
  k -= b;
  if (k <= len[n - 1] || n > 56) return fans(n - 1, k);
  k -= len[n - 1];
  if (k <= c) return f1c[k - 1];
  return '.';
}
int main() {
  len.resize(100001, 0);
  a = f1a.length();
  b = f1b.length();
  c = f1c.length();
  len[0] = f0.length();
  for (int i = 1; i < 100001; i++) {
    len[i] = 2 * len[i - 1] + a + b + c;
  }
  long long int q;
  cin >> q;
  string ans;
  long long int n, k;
  while (q--) {
    cin >> n >> k;
    char ch = fans(n, k);
    ans.push_back(ch);
  }
  cout << ans;
}
