#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;
  if (s.size() < 7)
    cout << "NO";
  else {
    for (int i = 0; i < s.size(); i++) {
      if (s[i] != ck[cnt]) break;
      cnt++;
    }
    int dcnt = 6;
    for (int i = s.size() - 1; i >= 0; i--) {
      if (s[i] != ck[dcnt]) break;
      dcnt--;
    }
    if (cnt >= dcnt)
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
