#include <iostream>
using namespace std;
int main() {
    string s; cin >> s;
    for (int i = 0; i < s.size(); i++)
        for (int j = i; j < s.size(); j++) {
            if (s.substr(0, i) + s.substr(j, s.size()-j) == "keyence") {
                cout << "YES" << endl;
                return 0;
            }
        }
    cout << "NO" << endl;
}
