#include <bits/stdc++.h>
using namespace std;
char word[110], ask[] = "keyence";
int len;
int st[10];
int main() {
  scanf("%s", word);
  len = strlen(word);
  for (int i = 0; word[i]; i++) {
    for (int j = 0; j < 7; j++) {
      if (word[i + j] != ask[j]) {
        for (int k = i + j + 1; word[k]; k++) {
          for (int l = 0; l + j < 7 && k + l < len; l++) {
            if (word[k + l] != ask[l + j]) {
              break;
            } else if (l + j == 6) {
              printf("YES");
              return 0;
            }
          }
        }
        break;
      } else if (j == 6) {
        printf("YES");
        return 0;
      }
    }
  }
  printf("NO\n");
}
