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

namespace Atcoder
{
    class Atcoderrrrrr
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string ans = "NO";
            for(int i = 0; i < s.Length-1; i++)
            {
                for(int j = 0; j+i+1 < s.Length-1; j++)
                {
                    if(s.Remove(i,j)== "keyence")
                    {
                        ans = "YES";
                    }
                }
            }
            Console.WriteLine(ans);
        }
    }
}
