#include <bits/stdc++.h>
using namespace std;
const char* s0 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
const char* s1 = "What are you doing while sending \"";
const char* s2 = "\"? Are you busy? Will you send \"";
const char* s3 = "\"?";
int n, a[200010];
long long f[200010];
char now;
void search(int n, long long k) {
  if (n == 0) {
    if (k >= strlen(s0)) {
      now = '.';
    } else {
      now = s0[k];
    }
    return;
  }
  if (n >= 54) {
    if (k >= strlen(s1)) {
      search(n - 1, k - strlen(s1));
    } else {
      now = s1[k];
      return;
    }
  } else if (k < strlen(s1)) {
    now = s1[k];
    return;
  } else if (k < f[n - 1] + strlen(s1)) {
    search(n - 1, k - strlen(s1));
  } else if (k < f[n - 1] + strlen(s1) + strlen(s2)) {
    now = s2[k - f[n - 1] - strlen(s1)];
    return;
  } else if (k < f[n - 1] + strlen(s1) + strlen(s2) + f[n - 1]) {
    search(n - 1, k - f[n - 1] - strlen(s1) - strlen(s2));
  } else if (k < f[n - 1] + strlen(s1) + strlen(s2) + f[n - 1] + strlen(s3)) {
    now = s3[k - f[n - 1] - strlen(s1) - strlen(s2) - f[n - 1]];
    return;
  } else {
    now = '.';
    return;
  }
}
int main() {
  int T;
  scanf("%d", &T);
  f[0] = strlen(s0);
  for (int i = 1; i <= 53; i++) {
    f[i] = f[i - 1] * 2 + strlen(s1) + strlen(s2) + strlen(s3);
  }
  while (T--) {
    int n;
    long long k;
    scanf("%d%I64d", &n, &k);
    search(n, k - 1);
    putchar(now);
  }
}
