using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder
{
    class Program
    {
        static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); }
        static public List<long> Slist() { return ReadLine().Split().Select(long.Parse).ToList(); }

        static readonly long Mod = 1000000000 + 7;

        static void Main(string[] args)
        {
            //SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
            var S = ReadLine();
            var keyence = "keyence";

            for (var i = 0; i < S.Length; ++i)
            {
                if (!S.Contains('k')) break;
                while (S[i] != 'k') ++i;
                var cnt = 0;
                var nexts = i;
                // 最初の部分列
                while (S[nexts] == keyence[cnt])
                {
                    ++nexts;
                    ++cnt;
                    if (cnt == keyence.Length)
                    {
                        WriteLine("YES");
                        return;
                    }
                    if (nexts == S.Length)
                        break;
                }
                for (var k = nexts; k < S.Length; ++k)
                {
                    if (!S.Contains(keyence[cnt])) break;
                    while (S[k] != keyence[cnt])++k;
                    var last = k;
                    var lcnt = cnt;
                    // 最後の部分列
                    while (S[last] == keyence[lcnt])
                    {
                        ++last;
                        ++lcnt;
                        if (lcnt == keyence.Length)
                        {
                            WriteLine("YES");
                            return;
                        }
                        if (last == S.Length)
                            break;
                    }

                }
            }
            WriteLine("NO");
            //Out.Flush();
        }
    }
}