#include <bits/stdc++.h>
using namespace std;
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 M[100005];
char f(long long n, long long k) {
  if (n == 0) return s1[k];
  if (k < s2.size()) return s2[k];
  k = k - s2.size();
  if (k < M[n - 1]) return f(n - 1, k);
  k = k - M[n - 1];
  if (k < s3.size()) return s3[k];
  k = k - s3.size();
  if (k < M[n - 1]) return f(n - 1, k);
  k = k - M[n - 1];
  if (k < s4.size()) return s4[k];
  k = k - s4.size();
  return '.';
}
int main() {
  ios_base::sync_with_stdio(0);
  long long q;
  cin >> q;
  M[0] = s1.size();
  for (long long i = 1; i <= 53; i++) {
    if (M[i - 1])
      M[i] = s2.size() + M[i - 1] + s3.size() + M[i - 1] + s4.size();
  }
  for (long long i = 54; i <= 100001; i++) M[i] = M[53];
  for (long long i = 0; i < q; i++) {
    long long n, k;
    cin >> n >> k;
    long long n2 = n;
    if (n2 > 53) n2 = 53;
    if (k > M[n2])
      cout << '.';
    else
      cout << f(n, k - 1);
  }
}
