using System;

namespace B___KEYENCE_String
{
    class Program
    {
        static void Main (string[] args)
        {
            var s = Console.ReadLine ();
            var k = "keyence";
            var l = 0;
            for (var i = 0; i < 7; i++)
            {
                var b = false;
                for (var j = l; j < s.Length; j++)
                {
                    if (k[i] == s[j] && j != s.Length - 1)
                    {
                        l = j + 1;
                        b = true;
                        break;
                    }
                    else if (k[i] == s[j] && i == 6)
                    {
                        Console.WriteLine ("YES");
                        return;
                    }
                }
                if (b == false)
                {
                    Console.WriteLine ("NO");
                    return;
                }
            }
        }
    }
}