#include <bits/stdc++.h>
using namespace std;

int main() {
    string S;
    cin >> S;

    bool ans = false;
    for (int i = 0; i < 7; ++i) {
        if (S.substr(0, i) + S.substr(S.size()-7+i) == "keyence") ans = true;
    }

    if (ans) cout << "YES" << endl;
    else cout << "NO" << endl;
}