#include <bits/stdc++.h>
using namespace std;
string a = "What are you doing while sending \"";
string b = "\"? Are you busy? Will you send \"";
string c = "\"?";
string d =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
long long leng[100001];
string ans;
char kevinGotThis(long long n, long long k) {
  if (k >= leng[n]) {
    return '.';
  }
  if (n == 0) return d[k];
  if (k < a.size()) return a[k];
  k -= a.size();
  if (k < leng[n - 1]) return kevinGotThis(n - 1, k);
  k -= leng[n - 1];
  if (k < b.size()) return b[k];
  k -= b.size();
  if (k < leng[n - 1]) return kevinGotThis(n - 1, k);
  k -= leng[n - 1];
  if (k < c.size()) return c[k];
}
int main() {
  int q;
  scanf("%d", &q);
  leng[0] = d.size();
  for (int i = 1; i < 56; i++)
    leng[i] = a.size() + leng[i - 1] + b.size() + leng[i - 1] + c.size();
  for (int i = 56; i <= 100000; i++) leng[i] = LLONG_MAX;
  long long n, k;
  ans = "";
  for (int i = 0; i < q; i++) {
    cin >> n >> k;
    ans += kevinGotThis(n, k - 1);
  }
  cout << ans << endl;
  return 0;
}
