#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = S.length();
  string A = "keyence";
  int ans = 0;
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 7; j++) {
      if (S[i] == A[j]) {
        while (i < N && j < 7 && S[i] == A[j]) {
          i++;
          j++;
        }
        cnt++;
      }
    }
  }
  if (ans == 7 && cnt <= 2) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
