#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int index = 0;
  int tmpi;
  bool chk = true;
  cin >> str;
  vector<char> vec(7);
  vec.at(0) = 'k';
  vec.at(1) = 'e';
  vec.at(2) = 'y';
  vec.at(3) = 'e';
  vec.at(4) = 'n';
  vec.at(5) = 'c';
  vec.at(6) = 'e';
  for (int i = 0; i < str.size(); i++) {
    index = 0;
    tmpi = i;
    chk = true;
    for (int j = index; j < 7; j++) {
      if (vec.at(j) == str.at(tmpi)) {
        tmpi++;
        index = j;
      } else {
        chk = false;
        index = j;
        break;
      }
    }
    if (index == 6) {
      cout << "YES";
      return 0;
    }
    for (int j = tmpi; j < str.size(); j++) {
      if (vec.at(index) == str.at(j)) {
        chk = true;
        tmpi = j;
        break;
      }
    }
    if (chk == true) {
      for (int j = index; j < 7; j++) {
        if (vec.at(j) == str.at(tmpi)) {
          tmpi++;
          index = j;
        } else {
          chk = false;
          index = j;
          break;
        }
      }
    }
    if (index == 6) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
