#include <bits/stdc++.h>
using namespace std;
char s[705];
bool check() {
  char c[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int ji = 0;
  sort(c, c + 7);
  sort(s, s + 705);
  for (int i = 0; i < 705; i++)
    if (c[ji] == s[i]) ji++;
  return ji == 7;
}
int main() {
  gets(s);
  cout << (check() ? "YES" : "NO");
}
