using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;


namespace atcorder2
{
    class Program
    {
        public static long Read()
        {

            return long.Parse(Console.ReadLine());
        }

        public static long[] Reads()
        {

            return Console.ReadLine().Split().Select(long.Parse).ToArray();
        }

       
         public static long GCM(long x,long y)
        {
            if (x < y)  GCM(y, x);


            while (y > 0)
            {
                var z = y;
                y = x % y;
                x = z;
            }
            
            return x;
        }

        



        static void Main(string[] args)
        {
            var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            Console.SetOut(sw);


            var s = ReadLine();
            var c = new char[] { 'k', 'e', 'y', 'e', 'n', 'c', 'e' };
            long j = 0, k = 0 ;
            bool f = true;

            for (int i = 0; i < s.Length; i++)
            {
                if (j<7&&s[i] != c[j])
                {
                    if (f) k++;
                    f = false;
                }
                else
                {
                    f = true;
                    j++;
                }
            }
            WriteLine(k <= 1&&j>=7 ? "YES" : "NO");
            

            






            Console.Out.Flush();
        }
    }
}


