#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char key[] = "keyence";
  string str;
  int i, j, len, kpla, co;
  cin >> str;
  if (str.find("k") != string::npos && str.find("eyence") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("ke") != string::npos &&
             str.find("yence") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("key") != string::npos &&
             str.find("ence") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("keye") != string::npos &&
             str.find("nce") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("keyen") != string::npos &&
             str.find("ce") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("keyenc") != string::npos &&
             str.find("e") != string::npos) {
    cout << "YES" << endl;
  } else if (str.find("keyence") != string::npos) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
