#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
__attribute__((constructor)) void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int main() {
  string answer = "keyence";
  int index = 0;
  int missmatchCount = 0;
  bool isMatch = true;
  string S;
  cin >> S;
  for (int i = 0; i < (S.size()); i++) {
    if (S[i] == answer[index]) {
      isMatch = true;
      index++;
    } else {
      if (isMatch) {
        missmatchCount++;
      }
      isMatch = false;
    }
  }
  cout << ((index == answer.size() && missmatchCount <= 1) ? "YES" : "NO")
       << endl;
}
