#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pll = pair<ll, ll>;
using vll = vector<ll>;
using vpll = vector<pll>;
using gr = vector<vll>;
using wgr = vector<vpll>;
struct d_ {
  template <typename T>
  d_& operator,(const T& x) {
    cerr << ' ' << x;
    return *this;
  }
  template <typename T>
  d_& operator,(const vector<T>& x) {
    for (auto x : x) cerr << ' ' << x;
    return *this;
  }
} d_t;
string s1 =
    "What are you doing at the end of the world? Are you busy? Will you save "
    "us?";
string sa = "What are you doing while sending \"";
string sb = "\"? Are you busy? Will you send \"";
string sc = "\"?";
ll S = s1.size(), A = sa.size(), B = sb.size(), C = sc.size();
ll len[100007];
char dp(ll n, ll k) {
  if (n == 0) {
    if (k < S)
      return s1[k];
    else
      return '.';
  } else {
    if (k < A)
      return sa[k];
    else if (k < A + len[n - 1])
      return dp(n - 1, k - A);
    else if (k < A + len[n - 1] + B)
      return sb[k - A - len[n - 1]];
    else if (k < A + len[n - 1] + B + len[n - 1])
      return dp(n - 1, k - A - len[n - 1] - B);
    else if (k < A + len[n - 1] + B + len[n - 1] + C)
      return sc[k - A - len[n - 1] - B - len[n - 1]];
    else
      return '.';
  }
}
int main(void) {
  ios_base::sync_with_stdio(false);
  len[0] = S;
  bool inf = 0;
  for (ll i(1); i < 100007; i++) {
    len[i] = A + len[i - 1] + B + len[i - 1] + C;
    if (len[i] >= ll(1e18)) inf = 1;
    if (inf) len[i] = (1LL << 61);
  }
  ll q;
  cin >> q;
  while (q--) {
    ll n, k;
    cin >> n >> k;
    k--;
    cout << dp(n, k);
  }
  cout << endl;
  return 0;
}
