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