#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string key = "keyence";
  string s;
  cin >> s;
  bool ans = false;
  for (int i = 0; i < s.size() - 6; i++) {
    string flg = "";
    int j = 0;
    while (s[i + j] == key[j]) {
      j++;
      flg = "left";
    }
    if (flg == "left") {
      while (s[i + j] != key[j]) {
        i++;
      }
      flg = "right";
    }
    if (flg == "right" && j < key.size() - 1) {
      while (s[i + j] == key[j]) {
        j++;
        cerr << "right" << endl;
      }
    }
    cerr << "j: " << j << endl;
    if (j >= key.size()) {
      ans = true;
    }
  }
  if (ans) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
