#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string k = "keyence";
  cin >> s;
  int i, j;
  if (s.size() < 7) {
    cout << "NO" << '\n';
    return 0;
  }
  for (i = 0; i < 8; i++) {
    bool flg = true;
    for (j = 0; j < i; j++) {
      flg = flg and (k[i] == s[i]);
    }
    for (j = 0; j < 7 - i; j++) {
      flg = flg and (k[7 - j] == s[s.size() - j]);
    }
    if (flg) {
      cout << "YES" << '\n';
      return 0;
    }
  }
  cout << "NO" << '\n';
  return 0;
}
