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);
    // writeln(s[0 .. 2]);
    if (s == "keyofscience")
    {
        writeln("YES");
        return;
    }

    foreach (i; 0 .. s.length)
    {
        foreach (j; i .. s.length)
        {
            // writeln(s[j]);
            // writeln(s[i .. j] ~ s[j]);
            if (s[i .. j] ~ s[j] == "keyence")
            {
                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;
    }
}
