#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < ((int)s.size()); ++i) {
    for (int j = i + 1; j < (int)s.size(); ++j) {
      string t = "";
      for (int k = 0; k < (s.size()); ++k) {
        if (k >= i && k <= j) continue;
        t += s[k];
      }
      cout << t << endl;
      if (t == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
