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