#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * f;
}
char s[100005];
char t[20] = " keyence";
int main() {
  scanf("%s", s + 1);
  int a = 7, b = 7;
  for (int i = 1; i <= 7; ++i) {
    if (s[i] != t[i]) {
      a = i - 1;
      break;
    }
  }
  int len = strlen(s + 1);
  for (int i = 0; i < 7; ++i) {
    if (s[len - i] != t[7 - i]) {
      b = i;
    }
  }
  if (a + b >= 7)
    puts("YES");
  else
    puts("NO");
  return 0;
}
