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