#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int f = 0;
  int k = 0;
  int e = 0;
  int aa = a.size() - 1;
  int r = 0;
  if (a.at(0) == 'k' && a.at(1) == 'e' && a.at(2) == 'y' && a.at(3) == 'e' &&
      a.at(4) == 'n' && a.at(5) == 'c' && a.at(6) == 'e') {
    cout << "YES" << endl;
  } else if (a.at(aa - 6) == 'k' && a.at(aa - 5) == 'e' &&
             a.at(aa - 4) == 'y' && a.at(aa - 3) == 'e' &&
             a.at(aa - 2) == 'n' && a.at(aa - 1) == 'c' && a.at(aa) == 'e') {
    cout << "YES" << endl;
  } else {
    if (a.at(0) == 'k' && a.at(1) == 'e' && a.at(2) == 'y') {
      k = 1;
    }
    if (a.at(aa - 3) == 'e' && a.at(aa - 2) == 'n' && a.at(aa - 1) == 'c' &&
        a.at(aa) == 'e') {
      e = 1;
    }
    if (e == 1 && k == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
