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