#include <bits/stdc++.h>
using namespace std;
struct tmp {
  long long int l[5];
  long long int sum;
} A[100001];
string stri =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string str0 = "What are you doing while sending \"";
string str2 = "\"? Are you busy? Will you send \"";
string str4 = "\"?";
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  long long int q, i, j, k, x, y, z, n;
  A[0].sum = stri.size();
  for (i = 1; i <= 100000; ++i) {
    A[i].l[0] = str0.size();
    A[i].l[1] = A[i - 1].sum;
    A[i].l[2] = str2.size();
    A[i].l[3] = A[i - 1].sum;
    A[i].l[4] = str4.size();
    A[i].sum =
        str0.size() + str2.size() + str4.size() + A[i - 1].sum + A[i - 1].sum;
    if (A[i].sum > 1e18) A[i].sum = 1e18;
  }
  cin >> q;
  while (q--) {
    cin >> n >> k;
    if (A[n].sum < k) {
      putchar('.');
      continue;
    }
    long long int cur = n;
    while (true) {
      long long int sum = 0;
      for (i = 0; i < 5; ++i) {
        sum += A[cur].l[i];
        if (sum >= k) {
          break;
        }
      }
      if (cur == 0) {
        putchar(stri[k - 1]);
        break;
      }
      if (i == 0) {
        putchar(str0[k - 1]);
        break;
      }
      if (i == 2) {
        k -= (str0.size() + A[cur - 1].sum);
        putchar(str2[k - 1]);
        break;
      }
      if (i == 4) {
        k -= (str0.size() + A[cur - 1].sum + str2.size() + A[cur - 1].sum);
        putchar(str4[k - 1]);
        break;
      }
      if (i == 1) k -= str0.size();
      if (i == 3) k -= (str0.size() + A[cur - 1].sum + str2.size());
      cur -= 1;
    }
  }
  puts("");
  return 0;
}
