#include <bits/stdc++.h>
const long INF = 1000000009;
const long LINF = 1123456789012345678;
std::string s;
signed main() {
  std::cin >> s;
  for (long i = 0; i < s.length(); i++) {
    std::string t = s.substr(0, i);
    for (long j = i + 1; j <= s.length(); j++) {
      t += s.substr(j, s.length() - j);
      if (t == "keyence") {
        printf("YES\n");
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
