#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  if (S == key) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < S.length() - 7; i++) {
    string temp = S;
    temp.erase(i, temp.length() - 7);
    if (temp == key) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
