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

int main()
{
    std::string S;
    std::cin >> S;
    int progress = 0;
    bool blank = false;
    for (size_t i = 0; i < S.size(); i++) {
        if (progress == 0 and S.at(i) == 'k') {
            progress++;
        } else if (progress == 1 and S.at(i) == 'e') {
            progress++;
        } else if (progress == 2 and S.at(i) == 'y') {
            progress++;
        } else if (progress == 3 and S.at(i) == 'e') {
            progress++;
        } else if (progress == 4 and S.at(i) == 'n') {
            progress++;
        } else if (progress == 5 and S.at(i) == 'c') {
            progress++;
        } else if (progress == 6 and S.at(i) == 'e') {
            progress++;
            if (i == S.size() - 1) {
                std::cout << "YES" << std::endl;
            } else {
                if (blank) {
                    std::cout << "NO" << std::endl;
                } else {
                    std::cout << "YES" << std::endl;
                }
            }
            return 0;
        } else {
            if (blank) {
                std::cout << "NO" << std::endl;
                return 0;
            }
            blank = true;
        }
    }
    std::cout << "NO" << std::endl;
    return 0;
}