#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const int INF = 1000 * 1000 * 1000 + 7;
const long long LINF = INF * (long long)INF;
const int MAX = 1000 * 100 + 47;
long long F[MAX];
string f0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string s = "What are you doing while sending \"";
string t = "\"? Are you busy? Will you send \"";
string p = "\"?";
char get(int n, long long k) {
  if (F[n] <= k) return '.';
  if (n == 0) return f0[k];
  if (k < (int)s.size()) return s[k];
  k -= (int)s.size();
  if (k < F[n - 1]) return get(n - 1, k);
  k -= F[n - 1];
  if (k < (int)t.size()) return t[k];
  k -= (int)t.size();
  if (k < F[n - 1]) return get(n - 1, k);
  k -= F[n - 1];
  return p[k];
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  F[0] = (int)f0.size();
  for (int i = (1); i < (MAX); i++) {
    F[i] = F[i - 1] * 2 + (int)s.size() + (int)t.size() + (int)p.size();
    if (F[i] > LINF) F[i] = LINF;
  }
  int q, n;
  long long k;
  cin >> q;
  for (int i = (0); i < (q); i++) {
    cin >> n >> k;
    k--;
    char ch1 = get(n, k);
    cout << ch1;
  }
  cout << endl;
}
