#include <bits/stdc++.h>
using namespace std;
string a =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string b = "What are you doing while sending \"";
string c = "\"? Are you busy? Will you send \"";
string d = "\"?";
long long dp[100001];
char solve(long long n, long long k) {
  if (k > dp[n]) return '.';
  if (n == 0) return a[k - 1];
  if (k <= b.size()) return b[k - 1];
  k -= b.size();
  if (k <= dp[n - 1]) return solve(n - 1, k);
  k -= dp[n - 1];
  if (k <= c.size()) return c[k - 1];
  k -= c.size();
  if (k <= dp[n - 1]) return solve(n - 1, k);
  k -= dp[n - 1];
  if (k <= d.size()) return c[k - 1];
  return '.';
}
int main() {
  dp[0] = a.size();
  for (int i = 1; i <= 100000; ++i) {
    long long now = dp[i - 1] * 2 + b.size() + c.size() + d.size();
    dp[i] = now > 1e18 ? 1e18 : now;
  }
  int q;
  for (scanf("%d", &q); q--;) {
    long long n, k;
    scanf("%lld%lld", &n, &k);
    putchar(solve(n, k));
  }
  return 0 * putchar(10);
}
