#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int a = s.find("k");
  int b = s.find("ke");
  int c = s.find("key");
  int d = s.find("keye");
  int e = s.find("keyen");
  int f = s.find("keyenc");
  if (a != string::npos) {
    int aa = s.find("eyence", a + 1);
    if (a < aa && aa != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  if (b != string::npos) {
    int bb = s.find("yence", b + 2);
    if (b < bb && bb != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  if (c != string::npos) {
    int cc = s.find("ence", c + 3);
    if (c < cc && cc != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  if (d != string::npos) {
    int dd = s.find("nce", d + 4);
    if (d < dd && dd != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  if (e != string::npos) {
    int ee = s.find("ce", e + 5);
    if (e < ee && ee != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  if (f != string::npos) {
    int ff = s.find("e", f + 6);
    if (f < ff && ff != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
