#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string target = "keyence";
  int target_size = (int)target.size();
  for (int i = 0; i < target_size; i++) {
    bool is_find = false;
    string s1 = target.substr(0, i);
    string s2 = target.substr(i, target_size - i);
    string search_str = ((int)s1.size() == 0) ? s2 : s1;
    bool is_find_s1 = ((int)s1.size() == 0) ? true : false;
    int j = 0;
    while (j + (int)search_str.size() <= (int)S.size()) {
      string sub_str = S.substr(j, (int)search_str.size());
      if (sub_str == s1 && is_find_s1 == false) {
        is_find_s1 = true;
        search_str = s2;
        j += (int)search_str.size();
        continue;
      }
      if (sub_str == s2 && is_find_s1 == true) {
        is_find = true;
        break;
      }
      j++;
    }
    if (is_find) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
