#include <bits/stdc++.h>
using namespace std;
int main() {
  string t = "keyence";
  string s;
  cin >> s;
  int index = 0;
  vector<bool> fnad(s.size(), false);
  for (int i = 0; i < (s.size()); ++i) {
    if (s[i] == t[index]) {
      index++;
      fnad[i] = true;
    }
    if (index == s.size() - 1) break;
  }
  int ch = 0;
  for (int i = 0; i < (fnad.size()); ++i) {
    if (fnad[i] && !fnad[i + 1]) ch++;
  }
  if (s == t) {
    cout << "YES" << endl;
    return 0;
  }
  if (ch == 1) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
  return 0;
}
