#include <bits/stdc++.h>
#include <boost/range/irange.hpp>

using namespace std;
using namespace boost;

main() {
    const auto* p = "keyence";

    string s;
    cin >> s;
    for (auto c : s) {
        if (c == *p) {
            ++p;
        }
    }

    cout << (*p == 0 ? "YES" : "NO") << endl;
}