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

int main() {
    string s;
    cin >> s;
    int l = s.size();
    for (int i = 0; i <= 7; i++) {
        if (s.substr(0, i) + s.substr(l - 7 + i, 7 - i) == "keyence") {
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
}
