#include <bits/stdc++.h>
using namespace std;
int minInd[2], maxInd[2];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  s = '.' + s;
  for (int i = 1; i <= n; i++) {
    if (s[i] == '0') {
      maxInd[0] = i;
    } else {
      maxInd[1] = i;
    }
  }
  for (int i = n; i >= 1; i--) {
    if (s[i] == '0') {
      minInd[0] = i;
    } else {
      minInd[1] = i;
    }
  }
  if (maxInd[0] - minInd[0] + 1 <= k || maxInd[1] - minInd[1] + 1 <= k) {
    cout << "tokitsukaze";
    return 0;
  }
  if (maxInd[0] - minInd[0] - 1 >= k || maxInd[1] - minInd[1] - 1 >= k) {
    cout << "once again";
    return 0;
  }
  if (maxInd[0] < minInd[1] || maxInd[1] < minInd[0]) {
    cout << "once again";
    return 0;
  }
  cout << "quailty";
  return 0;
}
