#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const long long mod = 998244353;
int max(int a, int b) { return a > b ? a : b; }
char a[10] = {"keyence"};
int main() {
  char s[1000];
  scanf("%s", s);
  int n = strlen(s);
  int fg = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == a[fg]) {
      fg++;
    }
  }
  if (fg == 7)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
