#include <bits/stdc++.h>
using namespace std;
const long long infll = powl(2, 62) - 1;
const long double pi = 4.0 * atanl(1.0);
const long long mod = powl(10, 9) + 7;
string first =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string nextS =
    "What are you doing while sending \"\"? Are you busy? Will you send \"\"?";
string prefix = "What are you doing while sending \"";
string suffix = "\"? Are you busy? Will you send \"";
long long memo[(long long)1e5 + 5];
long long lengthS(long long n) {
  if (n == 0) return first.size();
  if (memo[n] != -1) return memo[n];
  if (n > 55) return memo[n] = infll;
  return memo[n] = nextS.size() + 2 * lengthS(n - 1);
}
char letter(long long n, long long k) {
  if (n == 0) {
    if (k >= first.size()) {
      return '.';
    }
    return first[k];
  }
  if (k < prefix.size()) return prefix[k];
  long long temp = lengthS(n - 1);
  if (k < prefix.size() + temp) return letter(n - 1, k - prefix.size());
  if (k < prefix.size() + temp + suffix.size())
    return suffix[k - prefix.size() - temp];
  if (k < prefix.size() + temp + suffix.size() + temp)
    return letter(n - 1, k - prefix.size() - temp - suffix.size());
  if (k < nextS.size() + 2 * temp) {
    return nextS[k - 2 * temp];
  }
  return '.';
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  for (long long &x : memo) x = -1;
  long long q, n, k;
  cin >> q;
  while (q--) {
    cin >> n >> k;
    cout << letter(n, k - 1);
  }
  cout << '\n';
  return 0;
}
