#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int flag = 0;
  cin >> s;
  int len = s.length();
  for (int i = 0; i < len; i++) {
    if (s[i] == 'k' && flag == 0) flag = 1;
    if (s[i] == 'e' && flag == 1) flag = 2;
    if (s[i] == 'y' && flag == 2) flag = 3;
    if (s[i] == 'e' && flag == 3) flag = 4;
    if (s[i] == 'n' && flag == 4) flag = 5;
    if (s[i] == 'c' && flag == 5) flag = 6;
    if (s[i] == 'e' && flag == 6) flag = 7;
  }
  if (flag == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
