#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool isdeleteS = false;
  bool isStart = false;
  string target = "keyence";
  int Ti = 0;
  if (S.find(target) != string::npos &&
      S.find(target) + target.size() == S.size()) {
    cout << "aa" << endl;
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < S.size(); ++i) {
    if (target[Ti] == S[i]) {
      isStart = true;
      ++Ti;
      if (Ti == target.size() && S.find(target) + target.size() == S.size()) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      if (isdeleteS == true && isStart == true) {
        cout << "NO" << endl;
        return 0;
      } else {
        isdeleteS = true;
      }
      if (isStart == true) {
        if (S.substr(i + 1).find(target.substr(Ti)) != string::npos) {
          cout << "YES" << endl;
        } else {
          cout << "NO" << endl;
        }
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
