#include <bits/stdc++.h>
int main() {
  static char cc[100000 + 1];
  int n, k, i, i0, j0, i1, j1;
  scanf("%d%d%s", &n, &k, cc);
  i0 = j0 = -1;
  for (i = 0; i < n; i++)
    if (cc[i] == '0') {
      if (i0 == -1) i0 = i;
      j0 = i;
    }
  i1 = j1 = -1;
  for (i = 0; i < n; i++)
    if (cc[i] == '1') {
      if (i1 == -1) i1 = i;
      j1 = i;
    }
  if (j0 - i0 < k || j1 - i1 < k)
    printf("tokitsukaze\n");
  else if (j0 - i0 > k || i0 >= k || j0 < n - k || j1 - i1 > k || i1 >= k ||
           j1 < n - k)
    printf("once again\n");
  else
    printf("quailty\n");
  return 0;
}
