#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  bool ans = 0;
  queue<char> key;
  key.push('k');
  key.push('e');
  key.push('y');
  key.push('e');
  key.push('n');
  key.push('c');
  key.push('e');
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == key.front()) key.pop();
    if (key.empty()) {
      ans = 1;
      break;
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
