#include <bits/stdc++.h>
using namespace std;
int main() {
  string key;
  cin >> key;
  if (key.find("keyence") != string::npos) {
    cout << "YES";
  } else if (key.find("k") != string::npos &&
             key.find("eyence") != string::npos) {
    cout << "YES";
  } else if (key.find("ke") != string::npos &&
             key.find("yence") != string::npos) {
    cout << "YES";
  } else if (key.find("key") != string::npos &&
             key.find("ence") != string::npos) {
    cout << "YES";
  } else if (key.find("keye") != string::npos &&
             key.find("nce") != string::npos) {
    cout << "YES";
  } else if (key.find("keyen") != string::npos &&
             key.find("ce") != string::npos) {
    cout << "YES";
  } else if (key.find("keyenc") != string::npos) {
    key.replace(key.find("keyenc"), 6, "zzzzzz");
    if (key.find("e") != string::npos) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  } else {
    cout << "NO";
  }
  return 0;
}
