#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
using ll = long long;
const int N = 1e5 + 5, MOD = 1e9 + 7;
string s;
int n, k;
void win() {
  cout << "tokitsukaze\n";
  exit(0);
}
void lose() {
  cout << "quailty\n";
  exit(0);
}
void draw() {
  cout << "once again\n";
  exit(0);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k;
  cin >> s;
  if (*min_element(s.begin(), s.end()) == *max_element(s.begin(), s.end()) ||
      k == n || n == 1) {
    win();
  }
  set<int> zero, one;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0')
      zero.insert(i);
    else
      one.insert(i);
  }
  if (*one.rbegin() - *one.begin() < k || *zero.rbegin() - *zero.begin() < k) {
    win();
  }
  for (int i = 0; i + k <= n; i++) {
    {
      int fstZero, fstOne, lstZero, lstOne;
      if (*zero.begin() < i) {
        fstZero = *zero.begin();
      } else {
        fstZero = i;
      }
      if (*zero.rbegin() >= i + k) {
        lstZero = *zero.rbegin();
      } else {
        lstZero = i + k - 1;
      }
      if (i <= *one.begin() && *one.begin() < i + k) {
        fstOne = *one.lower_bound(i + k);
      } else {
        fstOne = *one.begin();
      }
      if (i <= *one.rbegin() && *one.rbegin() < i + k) {
        lstOne = *(--one.lower_bound(i));
      } else {
        lstOne = *one.rbegin();
      }
      if (lstOne - fstOne >= k && lstZero - fstZero >= k) draw();
    }
    {
      int fstZero, fstOne, lstZero, lstOne;
      if (*one.begin() < i) {
        fstOne = *one.begin();
      } else {
        fstZero = i;
      }
      if (*one.rbegin() >= i + k) {
        lstOne = *one.rbegin();
      } else {
        lstOne = i + k - 1;
      }
      if (i <= *zero.begin() && *zero.begin() < i + k) {
        fstZero = *zero.lower_bound(i + k);
      } else {
        fstZero = *zero.begin();
      }
      if (i <= *zero.rbegin() && *zero.rbegin() < i + k) {
        lstZero = *(--zero.lower_bound(i));
      } else {
        lstZero = *zero.rbegin();
      }
      if (lstOne - fstOne >= k && lstZero - fstZero >= k) draw();
    }
  }
  lose();
  return 0;
}
