#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";

    for (int i = 0; s[i] == '\n'; i++) {
        if (s[i] == 'k') {
            for (int j = 0; s[i] == key[j] || key[j] == '\0'; j++, i++) {
                if (key[j] == '\0') {
                    cout << "YES" << endl;
                    goto end;
                }
            }
        }
    }

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