#include <bits/stdc++.h>
using namespace std;
void solve(string S) {
  string key = "keyence";
  int idx = 0;
  for (int i = 0; i < S.size(); i++) {
    for (int j = i; j < S.size(); j++) {
      bool flag = true;
      for (int k = 0; k < S.size(); k++) {
        if (k < i || j <= k) {
          if (idx >= S.size() || key[idx] != S[k]) {
            flag = false;
            break;
          } else {
            idx++;
          }
        }
      }
      if (flag) {
        std::cout << "YES" << std::endl;
        return;
      }
    }
  }
  std::cout << "NO" << std::endl;
}
int main() {
  string S;
  cin >> S;
  solve(S);
  return 0;
}
