#include <bits/stdc++.h>
using namespace std;
char S[103];
char ky[123] = "keyence";
int main() {
  cin >> S;
  int t = 0;
  for (int i = 0; S[i]; i++) {
    if (S[i] == ky[t]) t++;
    if (t == 7) break;
  }
  puts(t == 7 ? "YES" : "NO");
  return 0;
}
