#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()), end = ((int)t.size()) - 1, now = 0, used = false;
  for (int(i) = (0); (i) <= (n - 1); (i)++) {
    if (s[i] != t[now] && !used) {
      used = true;
      while (i < n && s[i] != t[now]) i++;
      now++;
    } else if (s[i] != t[now] && used)
      PRINT("NO");
    else if (s[i] == t[now])
      now++;
    if (now == end) PRINT("YES");
  }
  puts("NO");
  return 0;
}
