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

#define int long long

signed main() {
    string s;
    cin >> s;
    int l = s.length();
    const string k = "keyence";
    int ki = 0;
    int si = 0;
    int cnt = 0;
    while(si < l && s[si] == k[ki] && ki < 7) si++, ki++;
    while(si < l && s[si] != k[ki]) si++;
    while(si < l && s[si] == k[ki] && ki < 7) si++, ki++;
    cout << (s[i] == l && ki == 7 ? "YES" : "NO" )<< endl;
    return 0;
}