#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string S;
  bool flag = false;
  if (s.substr(0, 7) == "keyence" || s.substr(s.size() - 7, 7) == "keyence")
    flag = true;
  for (int i = 0; i < s.size() - 7; i++) {
    S = s;
    S.erase(i, s.size() - 7);
    if (S == "keyence") flag = true;
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
