#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  cin >> s;
  char key[] = "keyence";
  for (int i = 0; s[i] != '\n'; i++) {
    if (s[i] == 'k') {
      for (int j = 0; s[i] == key[j] || key[j] != '\0'; j++, i++) {
        if (key[j] == '\0') {
          cout << "YES" << endl;
          goto end;
        }
      }
    }
  }
  cout << "NO" << endl;
end:;
}
