#include <bits/stdc++.h>
using namespace std;
char S[1010] = " keyence";
char s[1001];
int main() {
  scanf("%s", s + 1);
  int n = strlen(s + 1);
  for (int i = 1; i <= n; i++)
    for (int a = 1; a <= 7; a++)
      if (i + a - 1 <= n && S[a] == s[i + a - 1]) {
        if (a == 7) {
          puts("YES");
          return 0;
        }
        for (int j = i + a; j <= n; j++) {
          for (int b = 1; a + b <= 7; b++) {
            if (j + b - 1 <= n && S[a + b] == s[j + b - 1]) {
              if (a + b == 7) {
                puts("YES");
                return 0;
              }
            } else
              break;
          }
        }
      } else
        break;
  puts("NO");
  return 0;
}
