#include <bits/stdc++.h>
using namespace std;
int main() {
  int count = 0, B = 0, a = 0;
  string S, A = "keyence";
  cin >> S;
  for (int i = 0; i < A.size(); i++) {
    for (int j = i; j < S.size(); j++) {
      if (A[i] == S[j]) {
        if (j - a > 1 && a != 0) B += 1;
        count += 1;
        a = j;
        j = S.size() - 1;
      }
    }
  }
  if (count == 7 && B <= 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
