#include <bits/stdc++.h>
using namespace std;
string win = "tokitsukaze";
string draw = "once again";
string loss = "quailty";
void solve() {
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  int pref = 1, suff = 1;
  for (int j = 1; j < n; j++) {
    if (s[j] == s[0]) {
      pref++;
    } else {
      break;
    }
  }
  for (int j = n - 2; j >= 0; j--) {
    if (s[j] == s[n - 1]) {
      suff++;
    } else {
      break;
    }
  }
  int mx = max(suff, pref);
  if (s[0] == s[n - 1]) {
    mx = suff + pref;
  }
  if (n - mx <= k) {
    cout << win << "\n";
    exit(0);
  }
  if (k < n / 2) {
    cout << draw << "\n";
    exit(0);
  }
  set<int> sf, sb;
  for (int j = n - 1; j >= k; j--) {
    sb.insert(s[j]);
  }
  int ptr1 = 1, ptr2 = k;
  while (ptr2 < n - 1) {
    if (ptr1 > pref || n - ptr2 - 1 > suff) {
      cout << draw << "\n";
      exit(0);
    }
    ptr1++;
    ptr2++;
  }
  cout << loss << "\n";
  return;
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
