#include <bits/stdc++.h>
using namespace std;
 
int main(){
    string S;
    cin >> S;

    int N = S.length();

    string A = "keyence";
    int ans = 0;

    for(int i = 0; i < 7; i++){
        int j = 0;
        for (j < N;){
            if (S[j] == A[i]){
                ans++;
                j++;
                break;
            }
            j++;
        }
    }

    if (ans == 7){
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
}