#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
const int INF = 0x3f3f3f3f;
const int iinf = 1 << 30;
const long long linf = 2e18;
const int MOD = 1000000007;
void print(int x) {
  cout << x << endl;
  exit(0);
}
void PRINT(string x) {
  cout << x << endl;
  exit(0);
}
void douout(double x) { printf("%lf\n", x + 0.0000000001); }
string s, t;
signed main() {
  t = "keyence";
  cin >> s;
  int n = ((int)s.size());
  int l = 0, r = 0;
  while (s[l] == t[r] && l < n && r < ((int)t.size())) l++, r++;
  if (l == n) PRINT("YES");
  for (int(i) = (l + 1); (i) <= (n - 1); (i)++) {
    int long long = i, rr = r;
    while (s[long long] == t[rr]) long long ++, rr++;
    if (long long == n) PRINT("YES");
  }
  PRINT("NO");
  return 0;
}
