#include <bits/stdc++.h>
using namespace std;
char a[110], b[110];
int main() {
  scanf("%s", a);
  int len = strlen(a);
  strcpy(b, "keyence");
  int l = 0, flag = 0, t, p;
  for (int i = 0; i < len; i++) {
    if (a[i] == 'k') {
      l = 0;
      while (i < len && l < 7) {
        if (a[i] == b[l]) {
          i++;
          l++;
        } else
          break;
      }
      if (l >= 7) {
        flag = 1;
        break;
      }
      p = l;
      for (int j = i; j < len; j++) {
        if (a[j] == b[l]) {
          t = j;
          while (t < len && l < 7) {
            if (a[t] == b[l])
              t++, l++;
            else
              break;
          }
          if (l >= 7)
            break;
          else
            l = p;
        }
      }
      if (l >= 7) {
        flag = 1;
        break;
      }
    }
  }
  if (flag == 1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
