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