#include <bits/stdc++.h>
using namespace std;
using namespace std;
;
string base =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string rec =
    "What are you doing while sending ,Z,? Are you busy? Will you send ,Z,?";
long long dp[100001];
int c = 0;
string b =
    "What are you doing while sending What are you doing at the end of the "
    "world? Are you busy? Will you save us?? Are you busy? Will you send What "
    "are you doing at the end of the world? Are you busy? Will you save us??";
char go(int n, long long k) {
  if (n == 0) {
    return base[k - 1];
  }
  if (n > 53 && k > 34) {
    long long d = k / 34LL;
    long long r = n - 53;
    long long t = min(d, r);
    return go(n - t, k - 1LL * t * 34);
  }
  for (int i = 0; i < ((int)((rec).size())); i++) {
    if (rec[i] == 'Z') {
      if (dp[n - 1] < k) {
        k -= dp[n - 1];
      } else {
        return go(n - 1, k);
      }
    } else {
      if (k == 1) return rec[i];
      --k;
    }
  }
  assert(false);
}
int main() {
  dp[0] = ((int)((base).size()));
  for (int i = 1; i < 54; ++i) {
    dp[i] = dp[i - 1] * 2LL + (((int)((rec).size())) - 2);
  }
  int q;
  scanf("%d", &q);
  int n;
  long long k;
  while (q--) {
    scanf("%d %lld", &n, &k);
    if (n < 54 && dp[n] < k)
      printf(".");
    else {
      char c = go(n, k);
      if (c == ',') c = '"';
      printf("%c", c);
    }
  }
}
