#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');
  bool flag1 = true;
  bool flag2 = true;
  bool flag3 = true;
  for (int i = 0; i < S.size(); i++) {
    if (!keyence.size()) {
      if (!flag2) flag3 = false;
    }
    if (S[i] == keyence.front()) {
      keyence.pop();
      if (!flag1) flag2 = false;
    } else {
      if (!flag2) flag3 = false;
      flag1 = false;
    }
  }
  if (!keyence.size() && flag3)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
