#include <bits/stdc++.h>
using namespace std;
int main() {
  string K = "keyence";
  string S;
  cin >> S;
  int n = 0, cnt = 0;
  bool prev = false;
  for (char c : S) {
    if (c == K[n]) {
      prev = false;
      ++n;
    } else {
      if (!prev) {
        prev = true;
        ++cnt;
      }
      if (cnt >= 2) {
        break;
      }
    }
    if (n == 6) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
