#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t = "keyence";
  cin >> s;
  for (int i = 1; i < t.length(); i++) {
    auto p1 = s.find(t.substr(0, i));
    auto p2 = s.find(t.substr(i, t.length() - i));
    if (p1 != s.npos && p2 != s.npos && p2 - p1 >= i) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
