#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int c = 0;
  string t = "keyence";
  bool ok = true;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == t[c]) {
      c++;
      if (c == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      if (ok)
        ok = false;
      else {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
