#include <bits/stdc++.h>
using namespace std;
string keyence = "keyence";
int number = 1;
int main() {
  string S;
  getline(cin, S);
  if (S.find(keyence) != string::npos) {
    cout << "YES" << endl;
    return 0;
  }
  if (S.front() != keyence[0]) {
    cout << "NO" << endl;
    return 0;
  }
  int f = 0;
  for (int i = 1; i < S.length(); i++) {
    if (keyence[number] != S[i]) {
      f++;
      while (i < S.length()) {
        if (keyence[number] == S[i]) {
          i--;
          break;
        }
        i++;
      }
    } else {
      number++;
    }
  }
  if (f > 1) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
}
