#include <iostream>
#include <string>

std::string s;
int main() {
	std::cin >> s;

	bool ok = false;
	for (size_t i = 0; i < s.size(); ++i)
		for (size_t j = 0; i + j <= s.size(); ++j)
			if (s.substr(0, i) + s.substr(i + j, s.size()) == "keyence")
				ok = true;
	if (ok)
		std::cout << "YES" << std::endl;
	else
		std::cout << "NO" << std::endl;
	return 0;
}
