#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  string res = "NO";
  int n = s.size();
  for (int left = 0; left < n; left++) {
    for (int right = left; right < n; right++) {
      string t = s.substr(0, left) + s.substr(right + 1, n - right);
      cerr << t << endl;
      if (t == "keyence") {
        res = "YES";
      }
    }
  }
  cout << res << endl;
  return 0;
}
