#include <bits/stdc++.h>
using namespace std;
long long int n, k;
string s;
bool func() {
  if (s[0] == s[n - 1]) {
    return false;
  }
  long long int x = 0;
  bool seen = false;
  long long int last = 0;
  for (long long int i = 0; i <= n - 1; i++) {
    if (s[i] == '0') {
      last = i;
    }
    if (!seen) {
      if (s[i] == '0') {
        x++;
      } else {
        seen = true;
      }
    }
  }
  if (x < k && (x + k + 1 == n) && (last + 1 <= k + 1)) {
    return true;
  } else {
    return false;
  }
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> k;
  cin >> s;
  long long int f0 = -1;
  long long int l0 = -1;
  long long int f1 = -1;
  long long int l1 = -1;
  for (long long int i = 0; i <= n - 1; i++) {
    if (s[i] == '0') {
      if (f0 == -1) {
        f0 = i;
      } else {
        l0 = i;
      }
    } else {
      if (f1 == -1) {
        f1 = i;
      } else {
        l1 = i;
      }
    }
  }
  if (f0 == -1 || l0 == -1 || f1 == -1 || l1 == -1) {
    cout << "tokitsukaze\n";
    return 0;
  } else {
    if ((l0 - f0 + 1 <= k) || (l1 - f1 + 1 <= k)) {
      cout << "tokitsukaze\n";
      return 0;
    }
  }
  if (s[0] == '1') {
    for (long long int i = 0; i <= n - 1; i++) {
      if (s[i] == '1') {
        s[i] = '0';
      } else {
        s[i] = '1';
      }
    }
  }
  bool g1 = func();
  string s2 = "";
  for (long long int i = 0; i <= n - 1; i++) {
    if (s[i] == '0') {
      s2 += '1';
    } else {
      s2 += '0';
    }
  }
  for (long long int i = n - 1; i >= 0; i--) {
    s[n - i - 1] = s2[i];
  }
  bool g2 = func();
  if (g1 || g2) {
    cout << "quailty\n";
  } else {
    cout << "once again\n";
  }
}
