import std;

auto input()
{
    return readln().chomp();
}

alias sread = () => readln.chomp();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    string s;
    s = input();
    // writeln(s);
    string key;
    key = "keyence";

    foreach (i; 0 .. key.length + 1)
    {
        string tmp = s[0 .. i] ~ s[$ - (7 - i) .. $];
        // writeln(tmp);
        if (tmp == key)
        {
            writeln("YES");
            return;
        }

    }
    writeln("NO");

}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
