#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int j = 0;
  int flag = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == key[j]) {
      j++;
      continue;
    }
    while (i + 1 < S.size() && flag == 0 && S[i + 1] != key[j]) {
      i++;
    }
    flag++;
  }
  if (j == key.size() && flag <= 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
