#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  vector<int> ip, op;
  int ic = 0, oc = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      oc++;
      op.push_back(i);
    } else {
      ic++;
      ip.push_back(i);
    }
  }
  if (ic == 0 || oc == 0) {
    cout << "tokitsukaze";
    return 0;
  }
  if (k == 1) {
    if (oc == 1 || ic == 1) {
      cout << "tokitsukaze";
      return 0;
    } else {
      cout << "once again";
      return 0;
    }
  }
  if (ip[ic - 1] - ip[0] + 1 <= k || op[oc - 1] - op[0] + 1 <= k) {
    cout << "tokitsukaze";
    return 0;
  }
  if (ip[ic - 1] - ip[0] + 1 >= k + 2 || op[oc - 1] - op[0] + 1 >= k + 2) {
    cout << "once again";
    return 0;
  }
  bool icc = true, occ = true;
  for (int i = ip[0]; i < ip[ic - 1]; i++) {
    if (!(s[i] == '1')) {
      icc = false;
      break;
    }
  }
  for (int i = op[0]; i < op[oc - 1]; i++) {
    if (!(s[i] == '0')) {
      occ = false;
      break;
    }
  }
  if (icc || occ) {
    cout << "once again";
    return 0;
  }
  cout << "quailty";
  return 0;
}
