#include <bits/stdc++.h>
char p[1005], h[] = {'e', 'y', 'e', 'n', 'c', 'e', '\0'};
int main() {
  scanf("%s", p);
  for (int i = 0; p[i]; i++) {
    if (p[i] == 'k') {
      int ck = 0, ck2 = 0;
      for (int j = 0, po = i + 1; j <= 6 && p[po];) {
        ck2 = 0;
        for (int k = po; p[k]; k++, po++) {
          if (p[k] != h[j]) {
            ck2 = 1;
          } else {
            j++;
            po++;
            break;
          }
        }
        ck += ck2;
        if (j == 6) {
          if (ck <= 1) {
            printf("YES");
            return 0;
          }
        }
      }
    }
  }
  printf("NO");
}
