#include <bits/stdc++.h>
using namespace std;
int main() {
  int freq[128] = {};
  string s, w = "keyence";
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    ++freq[s[i]];
  }
  if (freq['k'] >= 1 && freq['e'] >= 3 && freq['y'] >= 1 && freq['n'] >= 1 &&
      freq['c'] >= 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
