#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(int argc, const char* argv[]) {
  string s, S = "keyence";
  cin >> s;
  int idx = 0;
  string ans = "";
  bool flag[2] = {false, false};
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == S[idx]) {
      ans += s[i];
      idx++;
    } else {
      if (!flag[0]) {
        flag[0] = true;
        flag[1] = true;
      } else if (flag[1]) {
        flag[1] = false;
      } else {
        break;
      }
    }
  }
  if (ans == S) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
