#include <bits/stdc++.h>
int main() {
  std::string S, P = "keyence";
  std::cin >> S;
  int i = 0, j = 0, k = 0, flag = 1;
  while (k < 2 && i < (int)S.length()) {
    if (S.at(i) == P.at(j)) {
      flag = 1;
      i++;
      j++;
      if (j == 7) {
        std::cout << "YES";
        return 0;
      }
    } else {
      if (flag == 1) k++;
      flag = 0;
      i++;
    }
  }
  std::cout << "NO";
  return 0;
}
