#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a = -1, b = -1;
  string S;
  cin >> S;
  a = S.find("k");
  b = S.find("eyence");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  a = S.find("ke");
  b = S.find("yence");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  a = S.find("key");
  b = S.find("ence");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  a = S.find("keye");
  b = S.find("nce");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  a = S.find("keyen");
  b = S.find("ce");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  a = S.find("keyenc");
  b = S.find("e");
  if (a >= 0 && b >= 0 && a < b) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
}
