#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
const int INF = 999999999;
void readFromInputFile() {}
int main() {
  readFromInputFile();
  string key = "keyence";
  string s;
  cin >> s;
  bool succ = true;
  int i = 0, j = 0;
  int mode = 0;
  while (true) {
    if (i == key.size() && j == s.size()) {
      break;
    }
    if (j >= s.size() || i >= key.size()) {
      succ = false;
      break;
    }
    if (mode == 1) {
      if (key[i] != s[j]) {
        j++;
      } else {
        mode = 2;
      }
    } else if (key[i] == s[j]) {
      i++;
      j++;
    } else if (mode == 2) {
      succ = false;
      break;
    } else {
      mode = 1;
    }
  }
  cout << (succ ? "YES" : "NO") << endl;
  return 0;
}
