#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int j = 0;
  for (int i = 0; i < (int)s.size() && j < (int)key.size(); i++) {
    if (s[i] == key[j]) j++;
  }
  if (j == (int)key.size())
    printf("YES\n");
  else
    printf("NO\n");
}
