#include <bits/stdc++.h>
using namespace std;
string s1, s2;
long long q, n, k;
long long len[100005];
char sol(long long n, long long k) {
  if (k > len[n])
    return '.';
  else {
    if (n == 0)
      return s1[k - 1];
    else {
      if (k <= 34)
        return s2[k - 1];
      else if (k <= 34 + len[n - 1])
        return sol(n - 1, k - 34);
      else if (k <= len[n - 1] + 66)
        return s2[k - len[n - 1] - 1];
      else if (k <= 2 * len[n - 1] + 66)
        return sol(n - 1, k - 66 - len[n - 1]);
      else
        return s2[k - 2 * len[n - 1] - 1];
    }
  }
}
int main() {
  {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
  }
  cin >> q;
  s1 = "What are you doing at the end of the world? Are you busy? Will you "
       "save us?";
  s2 = "What are you doing while sending \"\"? Are you busy? Will you send "
       "\"\"?";
  len[0] = 75;
  n = 100005;
  for (long long i = 1; i < n; i++) {
    if (68 + 2 * len[i - 1] <= 1e18 + 5)
      len[i] = 68 + 2 * len[i - 1];
    else
      len[i] = 1e18 + 5;
  }
  for (long long i = 0; i < q; i++) {
    cin >> n >> k;
    cout << sol(n, k);
  }
  return 0;
}
