#include <bits/stdc++.h>
using namespace std;
char s[105];
int len;
int m, n, l, k, x;
int main() {
  scanf("%s", s);
  len = strlen(s);
  for (int i = 0; i < len; i++) {
    if (s[i] == 'k') m++;
    if (s[i] == 'e') n++;
    if (s[i] == 'y') l++;
    if (s[i] == 'n') k++;
    if (s[i] == 'c') x++;
  }
  if (m == 1 && n == 3 && l == 1 && k == 1 && x == 1)
    puts("YES");
  else
    puts("NO");
}
