#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t = "keyence";
  bool ans = false;
  cin >> s;
  for (int i = 0; i < t.length(); i++) {
    string a = "", b = "";
    for (int j = 0; j < i; j++) a = a + t[j];
    for (int j = i; j < t.length(); j++) b = b + t[j];
    if (i == 0) {
      if (s.find(b) != -1) ans = true;
    } else {
      if (s.find(a) == 0 && s.find(b) == s.length() - 7 + i) ans = true;
    }
  }
  if (ans)
    puts("YES");
  else
    puts("NO");
  return 0;
}
