#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  int x = 1, y = 1;
  for (int i = 1; i < n; i++) {
    if (s[i] == s[0])
      x++;
    else
      break;
  }
  for (int i = n - 2; i >= 0; i--) {
    if (s[i] == s[n - 1])
      y++;
    else
      break;
  }
  if (n - x <= k || n - y <= k || s[0] == s[n - 1] && n - x - y <= k)
    return cout << "tokitsukaze\n", 0;
  if (n > 2 * k) return cout << "once again\n", 0;
  int cnt = 0;
  for (int i = 1; i < n - k; i++)
    if (x >= i && n - i - k <= y) cnt++;
  if (cnt == n - k - 1)
    cout << "quailty\n";
  else
    cout << "once again\n";
  return 0;
}
