#include <bits/stdc++.h>
using namespace std;
int a[10];
int i, j, k, l, m, n, o;
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == 'k')
      for (j = i + 1; j < s.length(); j++)
        if (s[j] == 'e')
          for (k = j + 1; k < s.length(); k++)
            if (s[k] == 'y')
              for (l = k + 1; l < s.length(); l++)
                if (s[l] == 'e')
                  for (m = l + 1; m < s.length(); m++)
                    if (s[m] == 'n')
                      for (n = m + 1; n < s.length(); n++)
                        if (s[n] == 'c')
                          for (o = n + 1; o < s.length(); o++)
                            if (s[o] == 'e') {
                              int a[7];
                              a[0] = i;
                              a[1] = j;
                              a[2] = k;
                              a[3] = l;
                              a[4] = m;
                              a[5] = n;
                              a[6] = o;
                              int cnt = 0;
                              for (int i = 0; i < 6; i++) {
                                if (a[i + 1] - a[i] > 1) cnt++;
                              }
                              if (cnt < 2) {
                                cout << "YES\n";
                                return 0;
                              }
                            }
  }
  cout << "NO\n";
  return 0;
}
