#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char key[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  char S[100];
  int cnt = 1;
  int kc = 0;
  int flag = 0;
  cin >> S;
  for (int i = 0; i < 100; i++) {
    if (S[i] == NULL)
      break;
    else if (key[kc] == S[i]) {
      kc++;
      flag = 0;
    } else {
      if (flag == 1)
        continue;
      else
        cnt--;
      flag = 1;
      if (cnt < 0) {
        cout << "NO" << endl;
        break;
      }
    }
  }
  if (cnt >= 0) cout << "YES" << endl;
  return 0;
}
