#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char str[101];
  char ke[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  cin >> str;
  int cnt_a = 0;
  int cnt_b = 0;
  int l = strlen(str);
  char *p = ke;
  for (int i = 0; i < l; i++) {
    if (*p != str[i]) break;
    cnt_a++;
    p++;
  }
  if (cnt_a == 7) {
    cout << "YES" << endl;
    return 0;
  }
  p = ke + 6;
  for (int i = l - 1; i >= 0; i--) {
    if (*p != str[i]) break;
    cnt_b++;
    p--;
  }
  if (cnt_a + cnt_b == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
