#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string t = "keyence";
  int i, pt = 0;
  int flag = 0;
  int m[100];
  for (i = 0; i < s.length(); i++) {
    if (s[i] == t[pt]) {
      pt++;
      m[i] = 1;
    } else {
      m[i] = 0;
    }
  }
  int count = 0;
  for (i = 1; i < s.length(); i++) {
    if (m[i - 1] != m[i]) count++;
  }
  if (pt == 7 && count <= 2)
    printf("YES\n");
  else
    printf("NO\n");
}
