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

int main() {
	bool check = false;
	string str;

	cin >> str;

	for (int i = 0; i < str.length(); i++) {
		for (int j = i; j < str.length(); j++) {
			if (str.substr(0, i) + str.substr(j) == "keyence"){
				check = true;
			}
		}
	}

	if (check) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
}