#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long INF = 1ll << 60;
const double Inf = 1e20;
const double eps = 1e-9;
void gmax(int &a, int b) { a = (a > b ? a : b); }
void gmin(int &a, int b) { a = (a < b ? a : b); }
const int maxn = 105;
int n;
char str[maxn];
char op[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int main() {
  scanf("%s", str + 1);
  n = strlen(str + 1);
  for (int k = 1; k <= n; ++k) {
    if (str[k] != op[0]) continue;
    int s = k;
    for (int x = 1; x <= 6; ++x) {
      ++s;
      if (s > n || str[s] != op[x]) goto ggx;
    }
    return 0 * printf("YES");
  ggx:;
  }
  for (int i = 1; i <= n; ++i)
    for (int j = i; j <= n; ++j) {
      for (int k = 1; k <= n; ++k)
        if (k < i || k > j) {
          if (str[k] != op[0]) continue;
          int s = k;
          for (int x = 1; x <= 6; ++x) {
            ++s;
            while (s >= i && s <= j) ++s;
            if (s > n || str[s] != op[x]) goto gg;
          }
          return 0 * printf("YES");
        gg:;
        }
    }
  printf("NO");
  ;
  return 0;
}
