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