#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
char s[1000];
char t[] = "keyence";
int m = 7;
int main() {
  while (scanf("%s", s) != EOF) {
    int n = strlen(s);
    int i = 0, j = 0;
    while (i < n && j < m) {
      if (s[i] == t[j]) j++;
      i++;
    }
    if (j == m)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
