#include <iostream>
#include <string>
using namespace std;

int main() {
	string S, K = "keyence";
	bool check = false;
	cin >> S;
	for (int i = 0; i <= 7; i++) {
		if (S.substr(0, i) == K.substr(0, i) && S.substr(S.size() - 7 + i, 7 - i) == K.substr(i, 7 - i)) {
			check = true;
		}
	}
	if (check) cout << "YES" << endl;
	else cout << "NO" << endl;
}