#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string t = "keyence";
  string s;
  cin >> s;
  int skip = 0, j = 0;
  bool f1, f2;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[j]) {
      j++;
      f1 = 1;
    } else {
      if (f2) skip++;
      f1 = 0;
    }
    if (skip > 2) {
      cout << fixed << "NO" << endl;
      return 0;
    }
    f2 = f1;
  }
  if (j != t.size()) {
    cout << fixed << "NO" << endl;
  } else {
    cout << fixed << "YES" << endl;
  }
}
