#include <bits/stdc++.h>
using namespace std;
string s1 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string s2 = "What are you doing while sending 9";
string s3 = "9? Are you busy? Will you send 9";
string s4 = "9?";
long long a1, a2, a3, a4;
long long rk[100009];
long long pssy(long long a, long long i) {
  if (i == 0) {
    return (s1[a - 1ll] - 0);
  }
  if (a <= a2) {
    return (s2[a - 1ll] - 0);
  } else if (a <= (a2 + rk[i - 1])) {
    a = a - a2;
    return pssy(a, i - 1);
  } else if (a <= (a2 + rk[i - 1] + a3)) {
    a = a - a2 - rk[i - 1];
    return (s3[a - 1ll] - 0);
  } else if (a <= (a2 + rk[i - 1] + a3 + rk[i - 1])) {
    a = a - a2 - rk[i - 1] - a3;
    return pssy(a, i - 1);
  } else {
    a = a - a2 - rk[i - 1] - a3 - rk[i - 1];
    return (s4[a - 1ll] - 0);
  }
}
void solve() {
  long long n, k;
  cin >> n >> k;
  if (k > rk[n]) {
    cout << '.';
  } else {
    long long sol = pssy(k, n);
    if (sol == 57ll) {
      sol = 34ll;
    }
    char p = sol;
    cout << p;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  a1 = s1.size();
  a2 = s2.size();
  a3 = s3.size();
  a4 = s4.size();
  rk[0] = a1;
  for (long long i = (1); i <= (100009 - 2ll); i++) {
    rk[i] = 0ll;
    rk[i] = min(1500000000000000000ll, rk[i] + a2);
    rk[i] = min(1500000000000000000ll, rk[i] + rk[i - 1]);
    rk[i] = min(1500000000000000000ll, rk[i] + a3);
    rk[i] = min(1500000000000000000ll, rk[i] + rk[i - 1] + a4);
  }
  while (t--) {
    solve();
  }
}
