#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int A, B, C, D, E, F, N, M, K, L, R, X, Y, H, W, sum = 0, num = 0,
                                                             flag = 0;
  string S, T;
  cin >> S;
  N = S.size();
  T = S;
  for (long long int i = 0; i < N; i++)
    for (long long int j = i; j < N; j++) {
      S = T;
      S.erase(S.begin() + i, S.begin() + j + 1);
      if (S == "keyence") sum++;
    }
  if (sum)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
