#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 (a == "") {
      int x = s.find(b);
      if (x != -1) ans = true;
    } else {
      int x = s.find(a);
      string u = "";
      for (int k = x + i; k < s.length(); k++) {
        u += s[k];
      }
      int y = u.find(b);
      if (x != -1) ans = true;
    }
  }
  if (ans)
    puts("YES");
  else
    puts("NO");
  return 0;
}
