#include<cstdio>
#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

int main(void) {

	int st, en;

	bool pos = false;

	string s, key = "keyence";

	cin >> s;

	for (int k = 0; k < s.size(); k++) {
		if (s[k] == key[k]) {
			//cout << "f\n";
			if (k == 6) {
				//cout << "n\n";
				pos = true;
			}
		}
		else {
			st = k;
			for (int l = st; l < s.size(); l++) {
				//printf("l = %d\n", l);
				if (equal(s.begin() + l, s.begin() + l + 7 - st, key.begin() + st , key.end())==1) {
					pos = true;
					//cout << "t\n";
					break;
				}
			}
			break;
		}
	}

	if (pos)cout << "YES\n";
	else cout << "NO\n";

	return 0;
}