#include <bits/stdc++.h>
using namespace std;
char S[10] = "keyence";
int main() {
  char s[101];
  cin >> s;
  int now = 0;
  int flag = 0, times = 0;
  int n = strlen(s);
  for (int i = 0; i < n; i++) {
    if (s[i] == S[now])
      now++, flag = 0;
    else if (now) {
      if (!flag) flag = 1, times++;
      if (times > 1) {
        puts("NO");
        return 0;
      }
    }
    if (now == 7) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
  return 0;
}
