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

int main(void){
    string s;
    cin >> s;
    bool check = false;
    for(int i = 0;i < s.size() - (s.size()-7);i++){
        string t,t1,t2;
        t1 = s.substr(0,i);
        t2 = s.substr(i+s.size()-7);
        t = t1 + t2;
        if(t == "keyence")check = true;
    }
    if(check == true)cout << "YES";
    else cout << "NO";
}