#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch - '0' < 0 || ch - '0' > 9) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch - '0' >= 0 && ch - '0' <= 9) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int n;
char s[110];
char t[8] = {"keyence"};
int book[110];
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 3; i <= 3; i++) {
    memset(book, 0, sizeof(book));
    for (int j = i + 1; j <= i + n - 7; j++) book[j] = 1;
    int len = 0;
    int flag = 0;
    for (int j = 1; j <= n; j++) {
      if (book[j] == 0) {
        if (s[j] != t[len]) {
          flag = 1;
          break;
        }
        len++;
      }
    }
    if (flag == 0) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
  return 0;
}
