#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, key = "keyence";
  cin >> s;
  auto pos = s.find(key);
  if (pos != string::npos) {
    if (pos == 0 || pos == s.length() - key.length()) {
      cout << "YES" << endl;
      return 0;
    }
  }
  string sub1, sub2;
  for (int i = 1; i < 7; i++) {
    sub1 = key.substr(0, i);
    sub2 = key.substr(i);
    auto pos1 = s.find(sub1), pos2 = s.find(sub2);
    if (pos1 != string::npos && pos2 != string ::npos) {
      if (pos1 == 0 && pos2 == s.length() - sub2.length()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
