#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  int ct = 0;
  int ct2 = 0;
  string key = "keyence";
  while (s[ct] == key[ct2]) {
    ct++;
    ct2++;
    if (ct2 == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  while (s[ct] != key[ct2]) {
    ct++;
    if (ct >= (int)s.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  while (s[ct] == key[ct2]) {
    ct++;
    ct2++;
    if (ct == (int)s.size() || ct2 == 7) {
      if (ct == (int)s.size() && ct2 == 7)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
      return 0;
    }
  }
  return 0;
}
