#include <bits/stdc++.h>
using namespace std;
char s[207];
char s1[17] = {"keyence"};
int main() {
  scanf("%s", s);
  int flag = 0;
  for (int i = 0; s[i] != 0; i++) {
    flag = i;
  }
  for (int i = 0; i <= flag; i++) {
    s[i + flag + 1] = s[i];
  }
  int cnt = 0;
  int once = 0;
  for (int i = 0; s[i] != 0; i++) {
    if (s[i] == s1[cnt] && (s[i - 1] == s1[cnt - 1] || cnt == 0)) {
      cnt++;
    } else if (s[i] == s1[cnt] && s[i - 1] != s1[cnt - 1] && cnt != 0) {
      once++;
      cnt++;
    }
    if (cnt == 7) break;
  }
  if (cnt == 7 && once <= 1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
