#include <bits/stdc++.h>
using namespace std;
string s;
string get(int pos) {
  string res = "";
  for (int i = 0; i <= pos; ++i) res += s[i];
  int len = s.size();
  for (int i = len - (7 - pos - 1); i < len; i++) res += s[i];
  return res;
}
bool work() {
  for (int i = 0; i < 7; i++) {
    string tmp = get(1);
    if (tmp == "keyence") return 1;
  }
  return 0;
}
int main() {
  while (cin >> s) {
    puts(work() ? "YES\n" : "NO\n");
    return 0;
  }
}
