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