#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, -1, 0, 0}, dy[4] = {0, 0, 1, -1};
int absint(int a) { return max(a, -a); }
int main() {
  string s, key = "keyence";
  int i, j = 0, k = 0;
  cin >> s;
  for (i = 0; i < key.length(); i++) {
    if (s[i] == key[i])
      j++;
    else
      break;
  }
  for (i = 0; i < key.length(); i++) {
    if (s[s.length() - i] == key[key.length() - i])
      k++;
    else
      break;
  }
  printf("j%dk%d\n", j, k);
  if (j + k >= 8)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
