using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace B
{
    public class Program

    {

        const string KEYENCE = "keyence";

        public static void Main(string[] args)
        {
            string s = RSt();
            if(s == KEYENCE)
            {
                Console.WriteLine("YES");
                return;
            }

            for (int i = 0 ; i < s.Length ; i++)
            {
                for (int j = i + 1 ; j < s.Length - j ; j++)
                {
                    if(s.Remove(i,j) == KEYENCE)
                    {
                        Console.WriteLine("YES");
                        return;
                    }
                }
            }
             Console.WriteLine("NO");
        }

        static string RSt() { return Console.ReadLine(); }
        static int RInt() { return int.Parse(Console.ReadLine().Trim()); }
        static long RLong() { return long.Parse(Console.ReadLine().Trim()); }
        static double RDouble() { return double.Parse(Console.ReadLine()); }
        static string[] RStAr(char sep = ' ') { return Console.ReadLine().Trim().Split(sep); }
        static int[] RIntAr(char sep = ' ') { return Array.ConvertAll(Console.ReadLine().Trim().Split(sep), e => int.Parse(e)); }
        static long[] RLongAr(char sep = ' ') { return Array.ConvertAll(Console.ReadLine().Trim().Split(sep), e => long.Parse(e)); }
        static double[] RDoubleAr(char sep = ' ') { return Array.ConvertAll(Console.ReadLine().Trim().Split(sep), e => double.Parse(e)); }
        static string WAr<T>(IEnumerable<T> array, string sep = " ") { return string.Join(sep, array.Select(x => x.ToString()).ToArray()); }
    }

}
