#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int j = 0, f = 0, fb = 0, c = 0;
  char t[] = "keyence";
  cin >> s;
  for (int i = 0; i < s.length(); i++)
    if (t[i - j] != s[i])
      if (fb == 0 && c == 0) {
        j++;
        c++;
        fb = 1;
      } else if (fb == 1) {
        j++;
      } else
        f = 1;
    else
      fb = 0;
  if (f == 0 && s.length() - j == 7)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
