#include <bits/stdc++.h>
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string K;
  int n = S.length();
  if (S == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int k = i + 1; k <= n - 1; k++) {
      string T = K;
      for (int j = k; j <= n - 1; j++) {
        T += S[j];
        if (T == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
    K += S[i];
  }
  cout << "NO" << endl;
  return 0;
}
