#include <bits/stdc++.h>
using namespace std;
int x = 0;
int findstr(char a, string s) {
  int n = s.size();
  while (s[x] != a && x < n) {
    x++;
  }
  return x;
}
int main() {
  string str;
  cin >> str;
  int itr[8];
  itr[0] = -1;
  itr[1] = findstr('k', str);
  itr[2] = findstr('e', str);
  itr[3] = findstr('y', str);
  itr[4] = findstr('e', str);
  itr[5] = findstr('n', str);
  itr[6] = findstr('c', str);
  itr[7] = findstr('e', str);
  int cnt = 0;
  for (int i = 0; i < 7; i++) {
    if (itr[i + 1] - itr[i] != 1) cnt++;
  }
  if (cnt <= 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
