#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<char> t{'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int ans = 0, i = 0, j = 0;
  while (i != s.size()) {
    if (s[i] == t[j]) {
      ans++;
      j++;
    }
    i++;
  }
  if (ans == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
