#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  queue<char> keyence;
  keyence.push('k');
  keyence.push('e');
  keyence.push('y');
  keyence.push('e');
  keyence.push('n');
  keyence.push('c');
  keyence.push('e');
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == keyence.front()) keyence.pop();
  }
  if (!keyence.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
