#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
ostream& operator<<(ostream& os, const pair<T1, T2>& p) {
  os << "(" << p.first << ", " << p.second << ")";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  string sep = "";
  cout << "[";
  for (T e : v) {
    os << sep << e;
    sep = " ";
  }
  os << "]";
  return os;
}
string s =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string beg = "What are you doing while sending \"";
string mid = "\"? Are you busy? Will you send \"";
string eend = "\"?";
long long inf = 1000000000000000000LL;
long long big = 600000000000000000LL;
vector<long long> L(100002);
void calcL() {
  L[0] = 75;
  for (int i = 1; i <= 100001; ++i) {
    if (L[i - 1] < big) {
      L[i] = 2 * L[i - 1] + 68;
    } else {
      L[i] = inf;
    }
  }
}
char f(long long n, long long k) {
  while (true) {
    if (n == 0) {
      if (k < s.size()) {
        return s[k];
      }
      return '.';
    }
    n--;
    if (k < beg.size()) {
      return beg[k];
    }
    k -= beg.size();
    if (k < L[n]) {
      continue;
    }
    k -= L[n];
    if (k < mid.size()) {
      return mid[k];
    }
    k -= mid.size();
    if (k < L[n]) {
      continue;
    }
    k -= L[n];
    if (k < eend.size()) {
      return eend[k];
    }
    return '.';
  }
}
int main() {
  ios::sync_with_stdio(false);
  calcL();
  int q;
  cin >> q;
  for (int(_) = (0); (_) < (q); ++(_)) {
    long long n, k;
    cin >> n >> k;
    --k;
    cout << f(n, k);
  }
  cout << endl;
  return 0;
}
