#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str;
  cin >> str;
  string key = "keyence";
  int key_i = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str[i] != key[key_i]) {
      break;
    }
    key_i++;
  }
  string match = "";
  for (int i = key_i; i < key.size(); i++) {
    match += key[i];
  }
  if (match == "") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = key_i; i <= str.size() - match.size(); i++) {
    for (int k = 0; k < match.size(); k++) {
      if (str[i + k] != match[k]) break;
      if (k == match.size() - 1) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
