#include <iostream>
#include <string>

using namespace std;

string solve(const string &S)
{
	const int L = S.length();
	for (int i = 0; i < L; ++i) {
		for (int s = 0; i + s <= L; ++s) {
			string T = S;
			if (T.erase(i, s) == "keyence") {
				return "YES";
			}
		}
	}
	return "NO";
}

int main()
{
	string S;
	cin >> S;
	cout << solve(S) << endl;
}
