#include <bits/stdc++.h>
using namespace std;
string s;
char ck[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int cnt, c;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (cnt == 7 && !c) {
      cout << "YES";
      return 0;
    }
    if (s[i] == ck[cnt])
      cnt++;
    else if (c) {
      cout << "NO";
      return 0;
    } else {
      while (i < s.size() && s[i] != ck[cnt]) i++;
      c = 1;
      cnt++;
    }
  }
  if (cnt == 7)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
