#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = std::tuple<int, int>;
const int dx[8] = {-1, 1, 0, 0, -1, -1, 1, 1},
          dy[8] = {0, 0, -1, 1, -1, 1, -1, 1};
std::string S;
int main() {
  std::cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  std::cin >> S;
  int L = S.size();
  bool can = false;
  for (int i = 1; i <= 7; ++i) {
    for (int j = 0; j < L; ++j) {
      for (int k = j + i; k + (7 - i) <= L; ++k) {
        if ((i < 7 && S.substr(j, i) + S.substr(k, (7 - i)) == "keyence") ||
            (i == 7 && S.substr(j, i) == "keyence")) {
          can = true;
          break;
        }
      }
      if (can) {
        break;
      }
    }
    if (can) {
      break;
    }
  }
  if (can) {
    std::cout << "YES" << std::endl;
  } else {
    std::cout << "NO" << std::endl;
  }
}
