#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int a, b, count = 0, flag = 0;
  cin >> s;
  char k[] = "keyence";
  int c = s.size();
  if (s == "keyence") {
    cout << "YES" << '\n';
    return (0);
  }
  for (int i = 0; i < c; i++) {
    if (count == 7) {
      break;
    }
    if (s[i] != k[count]) {
      flag++;
      while (true) {
        if (s[i] == k[count]) {
          i++;
          break;
        }
        if (i >= c) {
          flag++;
          break;
        }
        i++;
      }
      count++;
    }
  }
  if (flag < 2) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}
