#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string a = "keyence";
  int x = 0;
  bool answer = true;
  for (int z = 0; z < s.size(); z++) {
    if (s[z] == 'k') {
      string str2 = "eyence";
      size_t found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
      if (z + 1 >= s.size() || s[z + 1] != 'e') continue;
      str2 = "yence";
      found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
      if (z + 2 >= s.size() || s[z + 2] != 'y') continue;
      str2 = "ence";
      found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
      if (z + 3 >= s.size() || s[z + 3] != 'e') continue;
      str2 = "nce";
      found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
      if (z + 4 >= s.size() || s[z + 4] != 'n') continue;
      str2 = "ce";
      found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
      if (z + 5 >= s.size() || s[z + 5] != 'c') continue;
      str2 = "e";
      found = s.find(str2);
      if (found != string::npos) {
        answer = false;
        cout << "YES" << endl;
        break;
      }
    }
  }
  if (answer) cout << "NO" << endl;
}
