#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string k = "keyence";
  int index = 0;
  int quit = 0;
  int last = 0;
  cin >> S;
  for (char& c : S) {
    if (index > 6) {
      if (quit == 1) {
        cout << "NO";
      } else {
        cout << "YES";
      }
      return 0;
    }
    if (c == k[index]) {
      index++;
      last = 0;
    } else if (last == 1) {
      continue;
    } else if (quit == 1) {
      cout << "NO";
      return 0;
    } else {
      last = 1;
      quit = 1;
    }
  }
  if (index > 6) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
