#include <bits/stdc++.h>
using i64 = long long;

int main() {
    std::string s;
    std::cin >> s;

    std::string t = "keyence";
    int i = 0;
    int n = s.size();
    while (i < 7 && s[i] == t[i]) i++;
    while (i < 7 && t[i] == s[n - (7 - i)]) i++;
    std::cout << (i == 7 ? "YES" : "NO") << std::endl;

    return 0;
}