#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using bint = boost::multiprecision::cpp_int;

int main()
{
    std::string S;
    std::cin >> S;
    std::string a1 = ""; std::string b1 = "keyence";
    std::string a2 = "k"; std::string b2 = "eyence";
    std::string a3 = "ke"; std::string b3 = "yence";
    std::string a4 = "key"; std::string b4 = "ence";
    std::string a5 = "keye"; std::string b5 = "nce";
    std::string a6 = "keyen"; std::string b6 = "ce";
    std::string a7 = "keyenc"; std::string b7 = "e";
    std::string a8 = "keyence"; std::string b8 = "";
    std::regex reb1(R"(^keyence)");
    if (std::regex_match(S, reb1)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea2(R"(^k)");
    std::regex reb2(R"(eyence$)");
    if (std::regex_match(S, rea2) and std::regex_match(S, reb2)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea3(R"(^ke)");
    std::regex reb3(R"(yence$)");
    if (std::regex_match(S, rea3) and std::regex_match(S, reb3)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea4(R"(^key)");
    std::regex reb4(R"(ence$)");
    if (std::regex_match(S, rea4) and std::regex_match(S, reb4)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea5(R"(^keye)");
    std::regex reb5(R"(nce$)");
    if (std::regex_match(S, rea5) and std::regex_match(S, reb5)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea6(R"(^keyen)");
    std::regex reb6(R"(ce$)");
    if (std::regex_match(S, rea6) and std::regex_match(S, reb6)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea7(R"(^keyenc)");
    std::regex reb7(R"(e$)");
    if (std::regex_match(S, rea7) and std::regex_match(S, reb7)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::regex rea8(R"(^keyence)");
    if (std::regex_match(S, rea8)) {
        std::cout << "YES" << std::endl;
        return 0;
    }
    std::cout << "NO" << std::endl;
    return 0;
}