#include <bits/stdc++.h>

#ifdef NON_SUBMIT
#define TEST(n) (n)
#else
#define TEST(n) ((void)0)
#endif

using namespace std;

const string chk="keyence";

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL); cout.tie(NULL);
	TEST(freopen("input.txt", "r", stdin));
	TEST(freopen("output.txt", "w", stdout));
	TEST(freopen("debug.txt", "w", stderr));
	string s;
	int j=0;
	cin>>s;
	for(auto c: s) {
		if(c==chk[j] && ++j=chk.size()) {
			break;
		}
	}
	cout<<(j==chk.size() ? "YES\n":"NO\n");
	return 0;
}