using System;
class c
{
    static void Main()
    {
        var s = Console.ReadLine();
        var keyence = "keyence";
        int ans = 0;
        for (int i = 0; i < s.Length; i++)
        {
            if (ans == 7) break;
            else if (s[i] == keyence[ans]) ans++;
        }
        Console.WriteLine(ans == 7 ? "YES" : "NO");
    }
}