#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string K = "keyence";
  int Kcount = 0;
  bool start = false;
  int start_pos;
  bool one_miss = false;
  for (int i = 0; i < s.size(); i++) {
    if (!start && s.at(i) == 'k') {
      start = true;
      start_pos = i;
      Kcount++;
    } else if (start && s.at(i) != K.at(Kcount)) {
      one_miss = true;
    } else if (start && s.at(i) == K.at(Kcount)) {
      Kcount++;
    } else if (start && one_miss && s.at(i) == K.at(Kcount)) {
      cout << "NO";
      return 0;
    } else if (start && start_pos > 0 && Kcount >= 6) {
      cout << "NO";
      return 0;
    }
  }
  if (!start) {
    cout << "NO";
    return 0;
  }
  cout << "YES";
  return 0;
}
