#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
const long long int li = 100005;
const long long int inf = 1000000000;
const long long int MAX = 1000000000000000000;
const long long int MIN = -1000000000000000000;
const long long int LOG = 30;
int n, m, cev, hak;
string s;
int main() {
  cin >> s;
  n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == 'k') {
      ++i;
      hak = 0;
      int flag = 0;
      while (s[i] != 'e' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'e')
        ++i;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      flag = 0;
      while (s[i] != 'y' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'y')
        i++;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      flag = 0;
      while (s[i] != 'e' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'e')
        i++;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      flag = 0;
      while (s[i] != 'n' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'n')
        i++;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      flag = 0;
      while (s[i] != 'c' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'c')
        i++;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      flag = 0;
      while (s[i] != 'e' && i < n - 1) {
        flag = 1;
        i++;
      }
      if (s[i] == 'e')
        i++;
      else {
        printf("NO\n");
        return 0;
      }
      if (flag == 1) hak++;
      if (hak <= 1) {
        printf("YES\n");
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
