#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int cnt = 0;
  int flag = 0;
  vector<int> v;
  string ktmp;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == k[cnt]) {
      cnt++;
    } else {
      ktmp = k.substr(cnt);
      break;
    }
  }
  if (cnt == k.size()) {
    cout << "YES" << endl;
    return 0;
  }
  for (long long i = 0; i < s.size() - cnt; i++) {
    if (s.substr(cnt + i, ktmp.size()) == ktmp) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
