#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence";
  string s;
  cin >> s;
  int i, j;
  for (i = 0; i <= 7; i++) {
    bool flag = true;
    for (int x = 0; x < i; x++) {
      if (s[x] != key[x]) {
        flag = false;
      }
    }
    for (int y = i; y < 7; y++) {
      if (s[s.length() - 7 + y] != key[y]) {
        flag = false;
      }
    }
    if (flag == true) {
      cout << "YES" << endl;
    }
  }
  cout << "NO" << endl;
  return 0;
}
