#include <bits/stdc++.h>
using namespace std;

int main()
{
	string s, key = "keyence";
	cin >> s;
	int n = s.size();
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; i + j <= n; j++)
		{
			string t = s;
			t.erase(i, j);
			if (t == key)
			{
				cout << "YES" << endl;
				return 0;
			}
		}
	}
	cout << "NO" << endl;
	return 0;
}