#include <bits/stdc++.h>
using namespace std;
string s[100];
string str1 = "What are you doing while sending ";
string str2 = "? Are you busy? Will you send ";
string str3 = "?";
long long len[100];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  str1 = str1 + '"';
  str2 = '"' + str2 + '"';
  str3 = '"' + str3;
  s[0] =
      "What are you doing at the end of the world? Are you busy? Will you save "
      "us?";
  len[0] = 75;
  for (int i = 1; i <= 56; i++)
    len[i] =
        str1.length() + len[i - 1] + str2.length() + len[i - 1] + str3.length();
  long long n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long long u, k;
    cin >> u >> k;
    while (u >= 0) {
      if (u == 0) {
        if (k > len[0]) {
          cout << '.';
          break;
        }
        cout << s[0][k - 1];
        break;
      } else if (k <= str1.length()) {
        cout << str1[k - 1];
        break;
      } else if (u > 56) {
        u--;
        k -= str1.length();
      } else if (k > str1.length() && k <= str1.length() + len[u - 1]) {
        u--;
        k -= str1.length();
      } else if (k > str1.length() + len[u - 1] &&
                 k <= str1.length() + len[u - 1] + str2.length()) {
        cout << str2[k - (str1.length() + len[u - 1]) - 1];
        break;
      } else if (k > str1.length() + len[u - 1] + str2.length() &&
                 k <= str1.length() + len[u - 1] + str2.length() + len[u - 1]) {
        u--;
        k = k - (str1.length() + len[u] + str2.length());
      } else if (k > str1.length() + len[u - 1] + str2.length() + len[u - 1] &&
                 k <= len[u]) {
        cout << str3[k -
                     (str1.length() + len[u - 1] + str2.length() + len[u - 1]) -
                     1];
        break;
      } else {
        cout << '.';
        break;
      }
    }
  }
  return 0;
}
