#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3fLL;
const double PI = acos(-1.0);
const double eps = 1e-6;
const int mod = 1e9 + 7;
const int N = 2e5 + 5;
const int maxn = 2e5 + 50;
int pre[N][2][2], suf[N][2][2];
char s[N];
void work() {
  int n, k;
  cin >> n >> k;
  cin >> s;
  pre[0][0][0] = pre[0][1][0] = inf;
  pre[0][0][1] = pre[0][1][1] = 0;
  for (int i = 1; i <= n; ++i) {
    memcpy(pre[i], pre[i - 1], sizeof pre[i]);
    if (s[i - 1] == '0') {
      pre[i][0][0] = min(pre[i][0][0], i);
      pre[i][0][1] = max(pre[i][0][1], i);
    } else {
      pre[i][1][0] = min(pre[i][1][0], i);
      pre[i][1][1] = max(pre[i][1][1], i);
    }
  }
  suf[n + 1][0][0] = suf[n + 1][1][0] = inf;
  suf[n + 1][0][1] = suf[n + 1][1][1] = 0;
  for (int i = n; i >= 1; --i) {
    memcpy(suf[i], suf[i + 1], sizeof suf[i]);
    if (s[i - 1] == '0') {
      suf[i][0][0] = min(suf[i][0][0], i);
      suf[i][0][1] = max(suf[i][0][1], i);
    } else {
      suf[i][1][0] = min(suf[i][1][0], i);
      suf[i][1][1] = max(suf[i][1][1], i);
    }
  }
  int tokit = 0, qls = 0;
  for (int i = 1; i <= n - k + 1; ++i) {
    if (pre[i - 1][1][0] > pre[i - 1][1][1] and
        suf[i + k][1][0] > suf[i + k][1][1]) {
      tokit++;
    } else if (pre[i - 1][1][0] > pre[i - 1][1][1] and
               suf[i + k][1][1] - suf[i + k][1][0] + 1 <= k) {
      ++qls;
    } else if (pre[i - 1][1][1] - pre[i - 1][1][0] + 1 <= k and
               suf[i + k][1][0] > suf[i + k][1][1]) {
      ++qls;
    }
    if (pre[i - 1][0][0] > pre[i - 1][0][1] and
        suf[i + k][0][0] > suf[i + k][0][1]) {
      tokit++;
    } else if (pre[i - 1][0][0] > pre[i - 1][0][1] and
               suf[i + k][0][1] - suf[i + k][0][0] + 1 <= k) {
      ++qls;
    } else if (pre[i - 1][0][1] - pre[i - 1][0][0] + 1 <= k and
               suf[i + k][0][0] > suf[i + k][0][1]) {
      ++qls;
    }
  }
  if (tokit) {
    cout << "tokitsukaze\n";
  } else if (qls == (n - k + 1) * 2) {
    cout << "quailty\n";
  } else {
    cout << "once again\n";
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  work();
  return 0;
}
