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

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