#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int i = 0;
  int j = 0;
  int stop = 0;
  while (i < s.size()) {
    if (s[i] == key[j]) {
      while (i < s.size() and j < key.size() and s[i] == key[j]) {
        i++;
        j++;
      }
      i++;
      stop += 1;
    } else {
      i++;
    }
  }
  if (stop <= 2 and j == key.size()) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
