#include <bits/stdc++.h>
using namespace std;
const int Z = (int)1e5 + 111;
const int inf = (int)1e9 + 111;
const long long llinf = (long long)1e18 + 5;
const int MOD = (int)1e9 + 7;
string s1 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string s2 = "What are you doing while sending \"";
string s3 = "\"? Are you busy? Will you send \"";
string s4 = "\"?";
long long f[Z];
char solve(int n, long long k) {
  if (k > f[n]) return '.';
  if (n == 1) return s1[k - 1];
  if ((int)s2.size() >= k) return s2[k - 1];
  k -= (int)s2.size();
  if (f[n - 1] >= k) return solve(n - 1, k);
  k -= f[n - 1];
  if ((int)s3.size() >= k) return s3[k - 1];
  k -= (int)s3.size();
  if (f[n - 1] >= k) return solve(n - 1, k);
  k -= f[n - 1];
  return s4[k - 1];
}
int main() {
  srand(time(0));
  ios_base::sync_with_stdio(false);
  int tt;
  cin >> tt;
  f[1] = (int)s1.size();
  for (int i = 2; i <= 100001; ++i) {
    f[i] = min(llinf,
               (int)s2.size() + (int)s3.size() + (int)s4.size() + 2 * f[i - 1]);
  }
  while (tt--) {
    int n;
    long long k;
    cin >> n >> k;
    n++;
    cout << solve(n, k);
  }
  return 0;
}
