#include <bits/stdc++.h>
#define pb push_back
#define S second
#define F first

using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
int cnt[10];
int32_t main(){
    string a;
    cin >> a;
    int a1 = 0,b1 = 0;
    string b = "keyence",c = "ecneyek";
    for (int i = 0;i < 7;i++){
        if (a[i] == b[i]) a1++;
        else break;
    }
    int n = a.length() - 1;
    for (int i = 0;i < 7;i++){
        if (c[i] == a[n - i]) b1++;
        else break;
    }
    if (a1 + b1 >= 7){ashlfyhaashlfyha
        cout << "YES"<< endl;
    }else cout << "NO" << endl;
}
