#include <string>
#include <iostream>
using namespace std;
int main() {
	string s;
	cin >> s;
	int n = s.length();
	bool keyence = false;
	for (int i = 0; i <= 7; ++i) {
		if (s.substr(0, i) + s.substr(n - (7 - i)) == string("keyence")) {
			keyence = true;
		}
	}
	cout << (keyence ? "YES" : "NO") << endl;
	return 0;
}