using System;
class c
{
    static void Main()
    {
        var s = Console.ReadLine();
        var keyence = "keyence!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
        int ans = 0;
        bool judge = false;
        bool judge2 = false;
        if (s.Substring(0, 7) == "keyence") Console.WriteLine("YES");
        else if (s.Substring(s.Length - 7, 7) == "keyence") Console.WriteLine("YES");
        else
        {
            for (int i = 0; i < s.Length; i++)
            {
                if (s[i] != keyence[ans])
                {
                    judge = true;
                    if (judge2)
                    {
                        Console.WriteLine("NO");
                        break;
                    }
                }
                else if (s[i] == keyence[ans])
                {
                    ans++;
                    if (judge) judge2 = true;
                }
                if (i == s.Length - 1) Console.WriteLine("YES");
            }
        }
    }
}