#include <bits/stdc++.h>
using namespace std;
char S[105];
int N;
string s = "keyence";
int main() {
  scanf("%s", S);
  N = strlen(S);
  int idx = 0;
  for (int i = 0; i < N; i++) {
    if (idx < s.length()) {
      if (S[i] == s[idx]) {
        idx++;
      }
    }
  }
  if (idx == s.length())
    puts("YES");
  else
    puts("NO");
  return 0;
}
