#include <bits/stdc++.h>
using namespace std;
bool solve(string K, string S, int p) {
  int pos = p;
  int cnt = 0;
  for (int i = 0; i < K.length(); i++) {
    if (K[i] != S[pos]) {
      while (pos < S.length() && K[i] != S[pos]) pos++;
      cnt++;
    }
    if (pos >= S.length()) {
      return false;
    }
    pos++;
  }
  if (cnt == 0 || (cnt == 1 && S.length() == pos)) return true;
  return false;
}
int main() {
  string S;
  string K = "keyence";
  cin >> S;
  string ans = "NO";
  for (int i = 0; i < S.length(); i++) {
    if (solve(K, S, i)) ans = "YES";
  }
  cout << ans << endl;
  return 0;
}
