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

namespace Algorithm
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine();
            var keys = new char[] { 'k', 'e', 'y', 'e', 'n', 'c', 'e' };

            var count = 0;
            for (var i = 0; i < s.Length; i++)
            {
                if (s[i] == keys[count])
                    count++;

                if (count == keys.Length)
                {
                    Console.WriteLine("YES");
                    return;
                }
            }

            Console.WriteLine("NO");
        }
    }
}