#include <bits/stdc++.h>
using namespace std;
const int N = 110;
char s[N], t[] = "keyence";
int mp[N], ms[N];
int main() {
  scanf("%s", s);
  int n = strlen(s);
  int i = 0;
  while (i < 7 && s[i] == t[i]) ++i;
  if (n < 7) {
    puts("NO");
    return 0;
  }
  if (strcmp(s + n - (7 - i), t + i) == 0)
    puts("YES");
  else
    puts("NO");
  return 0;
}
