#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string p = "keyence";
  int i = 0, j = 0;
  int f = 1;
  if (s.find(p) != string::npos) return cout << ("YES") << endl, 0;
  for (int i = (1); i < (p.size()); i++) {
    auto q1 = p.substr(0, i);
    auto q2 = p.substr(i);
    auto f1 = s.find(q1);
    auto f2 = s.find(q2);
    if (f1 != string::npos && f2 != string::npos) {
      if (f1 < f2) return cout << ("YES") << endl, 0;
    }
  }
  return cout << ("NO") << endl, 0;
  return 0;
}
