#include <bits/stdc++.h>
using namespace std;
bool solution(string s) {
  string key = "keyence";
  string k, y;
  int N = s.size();
  bool flag = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      if (j <= i) continue;
      k = s.substr(0, i);
      y = s.substr(j, N - j);
      cerr << "i"
           << ":" << i << endl;
      ;
      cerr << "j"
           << ":" << j << endl;
      cerr << "k + y"
           << ":" << k + y << endl;
      ;
      if (k + y == key) flag = 1;
    }
  }
  return flag;
}
int main(void) {
  string s;
  cin >> s;
  cerr << "s"
       << ":" << s << endl;
  ;
  cout << ((solution(s) == 1) ? "YES" : "NO") << endl;
}
