#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  const string t = "keyence";
  bool ans = false;
  for (int i = 0; i < n; i++) {
    int j = i;
    int c = 0;
    while (j - i < 7 && t[j - i] == s[j]) j++;
    while (j + c < n && t[j - i] != s[j + c]) c++;
    while (j - i < 7 && t[j - i] == s[j + c]) j++;
    if (j - i == 7 && t[j - i] == s[j + c]) ans = true;
  }
  cout << (ans ? "YES" : "NO") << endl;
}
