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