#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
const char *s1 =
    " What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
const char *s2 = " What are you doing while sending \"";
const char *s3 = " \"? Are you busy? Will you send \"";
const char *s4 = " \"?";
long long len[100];
char f(long long k, int n) {
  if (!n) return s1[k];
  if (n > 53) {
    if (k <= 34)
      return s2[k];
    else
      return f(k - 34, n - 1);
  }
  if (k <= 34)
    return s2[k];
  else if (k <= 34 + len[n - 1])
    return f(k - 34, n - 1);
  else if (k <= 66 + len[n - 1])
    return s3[k - 34 - len[n - 1]];
  else if (k <= 66 + 2 * len[n - 1])
    return f(k - 66 - len[n - 1], n - 1);
  return s4[k - 66 - 2 * len[n - 1]];
}
int main() {
  len[0] = 75;
  for (int i = 1; i <= 52; ++i) len[i] = 34 + len[i - 1] + 32 + len[i - 1] + 2;
  int q;
  cin >> q;
  while (q--) {
    int n;
    long long k;
    cin >> n >> k;
    if (n < 53) {
      if (len[n] < k)
        cout << ".";
      else
        cout << f(k, n);
    } else {
      cout << f(k, n);
    }
  }
  return 0;
}
