#include <bits/stdc++.h>
#pragma GCC optimize "trapv"
using namespace std;
void solveEachTest(long long int T35TC453N = 1) {
  string s;
  cin >> s;
  int n = (int)s.length();
  string target = "keyence";
  for (auto i = (0); (((1) < 0) ? (i) > (n) : (i) < (n)); (i) += (1)) {
    for (auto j = (0); (((1) < 0) ? (j) > (n) : (j) < (n)); (j) += (1)) {
      string temp = "";
      for (auto k = (0); (((1) < 0) ? (k) > (n) : (k) < (n)); (k) += (1)) {
        if (k > i and k < j) {
          temp += s[k];
        }
      }
      if (temp == target) {
        cout << "YES";
        return;
      }
    }
  }
  cout << "NO";
  cout << "\n";
  return;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int T3X0 = 0, T353 = 1;
  solveEachTest(T353 - T3X0);
  return 0;
}
