#include <bits/stdc++.h>
using namespace std;
int main() {
  string word = {"keyence"};
  string S;
  cin >> S;
  int N = S.size();
  int i, k = 0;
  for (i = 0; i < N; i++) {
    if (S[i] == word[k]) {
      while (S[i] == word[k]) {
        i++;
        k++;
      }
      if (k == 7) {
        cout << "YES" << endl;
        return 0;
      }
      for (; i < N; i++) {
        if (S[i] == word[k]) {
          if (word.substr(k, N - k + 1) == S.substr(i, N - k + 1)) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
}
