#include <bits/stdc++.h>
using namespace std;
const int maxn = 5e5 + 5;
int min3(int a, int b, int c) { return min(min(a, b), c); }
int max3(int a, int b, int c) { return max(max(a, b), c); }
int gcd(int x, int y) {
  if (y == 0) return x;
  return gcd(y, x % y);
}
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - '0', ch = getchar();
  return x * f;
}
int vis[105];
int main() {
  char s[105];
  char s1[105];
  strcpy(s1, "keyence");
  scanf("%s", s);
  int l = strlen(s);
  for (int i = 0; i < l; i++) {
    vis[s[i] - 'a'] = 1;
  }
  for (int i = 0; i < 7; i++) {
    if (vis[s1[i] - 'a'] == 0) return 0 * printf("NO\n");
  }
  printf("YES\n");
  return 0;
}
