#include <bits/stdc++.h>
int main() {
  std::string S;
  std::cin >> S;
  std::string key = "keyence";
  int check[] = {0, 0, 0, 0, 0, 0, 0};
  int flag = 0;
  int pre_i;
  for (int i = 0; i < S.length(); i++) {
    if (S.substr(i, 1) == "k") {
      check[0] = 1;
      for (int j = 1; j < 7; j++) {
        if (S.substr(i + j, 1) == key.substr(j, 1)) {
          check[j] = 1;
          if (flag + j == 6) {
            std::cout << "YES";
            goto OUT;
          }
        } else {
          flag = j;
          pre_i = i + j;
          break;
        }
      }
    }
    if (flag != 0) {
      break;
    }
    if (i == S.length()) {
      std::cout << "NO";
      goto OUT;
    }
  }
  for (int i = pre_i + 1; i < S.length(); i++) {
    if (S.substr(i, 1) == key.substr(flag, 1)) {
      for (int j = 0; j < 7; j++) {
        if (S.substr(i + j, 1) == key.substr(flag + j, 1)) {
          check[j] = 1;
          if (flag + j == 6) {
            std::cout << "YES";
            goto OUT;
          }
        } else {
          break;
        }
      }
    }
  }
  std::cout << "NO";
  goto OUT;
OUT:
  int i = 0;
}
