#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int emp = 0, flag = 0, j = 0;
  string keyence = "keyence";
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == keyence[j]) {
      j++;
      flag = 0;
    } else {
      if (!flag) {
        emp++;
        flag = 1;
      }
    }
  }
  if (j == 7 && emp <= 1) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
