#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  string tmp = "";
  int f = 1;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != key[i]) {
      for (int j = 1; j < s.size(); j++) {
        string t = s.substr(i + j, s.size() - j);
        string k = tmp + t;
        if (k == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
      f = 0;
    }
    if (!f) {
      cout << "NO" << endl;
      return 0;
    }
    tmp += key[i];
  }
}
