using System;

namespace KEYPC2019_B
{
    class Program
    {
        static void Main(string[] args)
        {
            var S = Console.ReadLine();
            var keystr = "keyence";

            if (S.Contains(keystr))
            {
                var newS = S.Replace(keystr, "K");
                if (newS.IndexOf('K') == 0 || newS.IndexOf('K') == newS.Length - 1)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
                return;
            }

            for (int i = 0; i < S.Length; i++)
            {
                var t = 0;
                while (S[i + t] == keystr[t])
                {
                    t++;
                }

                if (t != 0)
                {
                    var sec = keystr.Substring(t, keystr.Length - t);

                    if (S.Contains(sec))
                    {
                        Console.WriteLine("YES");
                        return;
                    }
                }
            }

            Console.WriteLine("NO");
        }
    }
}
