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 = "keyence";
           
            
         


            
            
            int j=0, k = 6;
            for ( j = 0; j < 7;j++)
            {
                if (s[j] != c[j]) break;           
            }
            for (int l = s.Length-1; l >=0&&k>=0; l--)
            {
                if (s[l] != c[k]) break;
                k--;
            }
            


            
            WriteLine(k-j<=0 ? "YES" : "NO");
            

            






            Console.Out.Flush();
        }
    }
}


