#include "bits/stdc++.h"
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;

using ll = long long;
const ll MOD = 1e9 + 7;

int main() {
    string S, ans = "NO\n";
    cin >> S;
    int n = S.size();
    rep(i, 7) {
        if (S.substr(0, i + 1) + S.substr(n - 6 + i, 6 - i) == "keyence") ans = "YES\n";
    }
    cout << ans;
}