void main()
{
    string s = readln.chomp;

    string t = "keyence";
    bool ok;
    foreach (i; 0 .. 8)
    {
        if (s[0..i] == t[0..i] && s[$-7+i..$] == t[i..$])
        {
            ok = true;
        }
    }

    writeln(ok ? "YES" : "NO");
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;