#include <bits/stdc++.h>
using namespace std;
const string kek[2] = {
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?",
    "What are you doing while sending #What are you doing at the end of the "
    "world? Are you busy? Will you save us?#? Are you busy? Will you send "
    "#What are you doing at the end of the world? Are you busy? Will you save "
    "us?#?"};
const string fr = "What are you doing while sending #";
const string sc = "#? Are you busy? Will you send #";
const string th = "#?";
void print(const string &s, long long pos) {
  if (s.size() <= pos)
    cout << '.';
  else
    cout << (s[pos] == '#' ? '"' : s[pos]);
}
signed main() {
  ios_base::sync_with_stdio(0);
  int q;
  cin >> q;
  vector<long long> arr;
  arr.push_back(kek[0].size());
  for (int i = 0; i <= 1e5; i++) {
    if (arr.back() <= 1e18)
      arr.push_back(fr.size() + arr.back() + sc.size() + arr.back() +
                    th.size());
    else
      arr.push_back(4e18);
  }
  while (q--) {
    long long n, k;
    cin >> n >> k;
    k--;
    if (n <= 1)
      print(kek[n], k);
    else {
      while (1) {
        if (n <= 1) {
          print(kek[n], k);
          break;
        }
        if (k < fr.size()) {
          print(fr, k);
          break;
        }
        k -= fr.size();
        if (k < arr[n - 1]) {
          n--;
          continue;
        }
        k -= arr[n - 1];
        if (k < sc.size()) {
          print(sc, k);
          break;
        }
        k -= sc.size();
        if (k < arr[n - 1]) {
          n--;
          continue;
        }
        k -= arr[n - 1];
        print(th, k);
        break;
      }
    }
  }
  return 0;
}
