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

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