#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s, S;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    S = s.substr(0, i);
    if (S.find("keyence") <= 100) {
      cout << "YES" << endl;
      return 0;
    }
    S = s.substr(i);
    if (S.find("keyence") <= 100) {
      cout << "YES" << endl;
      return 0;
    }
  }
  for (int i = 0; i < s.length(); i++) {
    for (int j = 0; i + j < s.length(); j++) {
      S = s.substr(0, i) + s.substr(i + j);
      if (S.find("keyence") <= 100) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
