#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const long long INFL = 0x3f3f3f3f3f3f3f3f;
int main() {
  string s;
  cin >> s;
  bool can = false;
  for (int i = 0; i < (s.size() - 7); i++) {
    bool ok = false;
    for (int j = i; i + j < s.size(); j++) {
      string t = s.substr(0, i + 1) + s.substr(j + 1);
      cout << t << endl;
      if (t == "keyence") {
        can = true;
        ok = true;
        break;
      }
    }
    if (ok) break;
  }
  if (can)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
