#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, l, m, n, sum, flag, cc, M, X, H, W;
  sum = 0;
  flag = 0;
  char S[101];
  char ans[7];
  ans[0] = 'k';
  ans[1] = 'e';
  ans[2] = 'y';
  ans[3] = 'e';
  ans[4] = 'n';
  ans[5] = 'c';
  ans[6] = 'e';
  cin >> S;
  j = 0;
  i = 0;
  while (i < strlen(S)) {
    if (S[i] == ans[j]) {
      if (flag == 1) {
        flag = 2;
      }
      i++;
      j++;
    } else {
      i++;
      if (flag == 2) {
        cout << "NO" << endl;
        ;
        return 0;
      }
      flag = 1;
    }
  }
  if (j == 7) {
    cout << "YES" << endl;
    ;
  } else {
    cout << "NO" << endl;
    ;
  }
  return 0;
}
