#include <iostream>
#include <string>

using namespace std;

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