#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[1020];
  int na;
  char c[] = "keyence";
  cin >> s;
  int j = 0, k = 0;
  if (s[0] == c[0]) {
    na = 1;
    j++;
  } else {
    na = 0;
    k++;
  }
  for (int i = 1; i < 1000 && s[i] != '\0'; i++) {
    if (s[i] == c[j]) {
      na = 1;
      j++;
    } else {
      if (na == 1) k++;
      na = 0;
    }
    if (k == 2) break;
    if (j == 7) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
