#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  string b = "keyence";
  int L = b.length();
  bool ok = false;
  for (int i = 0; i < L; i++) {
    string b1 = b.substr(0, i);
    string b2 = b.substr(i, L - i);
    auto p1 = a.find(b1);
    auto p2 = a.find_last_of(b2);
    if (p1 == string::npos or p1 == string::npos) continue;
    bool hasSpaceAtFirst = (p1 > 0);
    bool hasSpaceAtLast = (p2 != a.length() - 1);
    bool hasSpaceAtMiddle = (p2 - p1 != 6);
    int count = hasSpaceAtFirst + hasSpaceAtLast + hasSpaceAtMiddle;
    if (count <= 1) {
      ok = true;
      break;
    }
  }
  if (ok) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
