#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <array>
#include <list>
#include <set>
#include <map>
#include <cmath>
using namespace std;

typedef long long ll;

int main() {
    char s[101];
    cin >> s;
    char key[] = "keyence";
    int j = 0, cont = 0;

    for (int i = 0; s[i] != '\n'; i++) {
        if (cont == 2) {
            goto end;
        }
        while (s[i] == key[j]) {
            if (key[j] == '\0') {
                cout << "YES" << endl;
                goto aaa;
            }
            j++;
        }
    }

    end:
    cout << "NO" << endl;
    aaa:
}