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

namespace Keyence
{
    class KEYENCE_String
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string ans = "NO";
            const string keyence = "keyence";
            int i = 0;
            while (i < 7)
            {
                if (s[i] != keyence[i]) { break; }
                i++;
            }
            if (i != 6) {
                int c = 0;
                for (int j = i; j < s.Length; j++)
                {
                    if (s[j] == keyence[i]) { c = j; break;}
                }
                for (int j = c; j < s.Length; j++)
                {
                    if (s[j] == keyence[i]) { i++; if (i == 6) { ans = "YES";break; } }
                }
            }
            else { ans = "YES"; }
            Console.WriteLine(ans);
        }
    }
}
