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