#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
signed main() {
	string s; cin >> s;
	for (int i = 0; i < s.size(); i++) {
		for (int j = i; j < s.size(); j++) {
			if (s.substr(0, i) + s.substr(j, s.size() - j) == "keyence") {
				cout << "YES\n";
				return 0;
			}
		}
	}
	cout << "NO\n";
}