#include <bits/stdc++.h>

using namespace std;

const char keyence[7] = { 'k','e','y','e','n','c','e' };

int main() {
	char tmp[256] = { 0 };
	int iStr[7] = { 0 };

	fgets(tmp, sizeof(tmp), stdin);
	std::string str(tmp);

	if ((7 <= str.size()) && (str.size() <= 100)) {
		for (int i = 0; i < 7; i++) {
			iStr[i] = std::count(str.cbegin(), str.cend(), keyence[i]);
		}
	}

	if ((iStr[0] > 0) && (iStr[1] > 2) && (iStr[2] > 0) && (iStr[4] > 0) && (iStr[5] > 0)) {
		printf("YES\n");
	}
	else {
		printf("NO\n");
	}

	return 0;