#include <bits/stdc++.h>
using namespace std;
const char k1[] = {
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?"};
const char k2[] = {"v!V!?"};
const char s1[] = {"What are you doing while sending "};
const char s2[] = {"? Are you busy? Will you send "};
unsigned long long f[100010], F, k, num, m;
char ans;
void print(char x) {
  num++;
  if (num == k) ans = x;
}
void output(int flr) {
  if (ans) return;
  if (!flr)
    for (int i = 0; i < 75; ++i) print(k1[i]);
  else {
    for (int i = 0; i < 5; ++i) {
      if (k2[i] == 'v') {
        if (num + 33 >= k)
          for (int j = 0; j < 33; ++j) print(s1[j]);
        else
          num += 33;
      } else if (k2[i] == 'V') {
        if (num + 30 >= k)
          for (int j = 0; j < 30; ++j) print(s2[j]);
        else
          num += 30;
      } else if (k2[i] == '!') {
        print('"');
        if (num + f[flr - 1] >= k)
          output(flr - 1);
        else
          num += f[flr - 1];
        print('"');
      } else
        print(k2[i]);
    }
  }
}
int main() {
  f[0] = 75;
  int i = 1;
  for (i = 1;; ++i) {
    f[i] = f[i - 1] * 2 + 68;
    if (f[i] > 1000000000000000000) break;
  }
  i++;
  for (; i <= 100000; ++i) f[i] = f[i - 1];
  cin >> m;
  for (int i = 1; i <= m; ++i) {
    cin >> F >> k;
    num = ans = 0;
    if (f[F] < k)
      cout << '.';
    else {
      output(F);
      cout << ans;
    }
  }
  return 0;
}
