#include <bits/stdc++.h>
using namespace std;
string s =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string t =
    "What are you doing while sending \"\"? Are you busy? Will you send \"\"?";
long long memo[100005];
long long getlen(int n) {
  if (memo[n] != -1) return memo[n];
  if (!n) return memo[n] = s.size();
  return memo[n] = t.size() + 2 * getlen(n - 1);
}
char solve(int n, long long k) {
  if (!n) return (k < s.size() ? s[k] : '.');
  if (n > 54) {
    if (k < 34) return t[k];
    return solve(n - 1, k - 34);
  }
  if (k >= getlen(n)) return '.';
  if (k < 34)
    return t[k];
  else if (k < 34 + getlen(n - 1))
    return solve(n - 1, k - 34);
  else if (k < 66 + getlen(n - 1))
    return t[k - getlen(n - 1)];
  else if (k < 66 + 2 * getlen(n - 1))
    return solve(n - 1, k - 66 - getlen(n - 1));
  else
    return t[k - 2 * getlen(n - 1)];
}
int main() {
  long long q, n, k;
  memset(memo, -1, sizeof(memo));
  for (cin >> q; q--; cout << solve(n, --k)) cin >> n >> k;
}
