#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i = 0, j = 0, count = 0;
  string s, a("keyence");
  cin >> s;
  while (a[i] != '\0' && s[j] != '\0' || count == 2) {
    if (s[j] == a[i]) {
      i++;
      j++;
    } else {
      j++;
      count++;
    }
    if (count == 1) {
      while (a[i] != s[j] && s[j] != '\0') {
        j++;
      }
    }
  }
  if (i == 7 && count <= 1 && s[j] != '\0') {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
