#include <bits/stdc++.h>
using namespace std;
int main() {
  string K = "keyence";
  string S;
  cin >> S;
  int i, j;
  for (i = 0; i < S.size(); ++i) {
    cout << S[i] << " " << K[i] << endl;
    if (S[i] != K[i]) break;
  }
  for (j = S.size() - (i + 1); j < S.size(); ++j, ++i) {
    cout << S[j] << " " << K[i] << endl;
    if (S[j] != K[i]) break;
  }
  printf("%s\n", i == K.size() ? "YES" : "NO");
}
