internal class Program
{
    public static void Main()
    {
        string s = Console.ReadLine();
        Console.WriteLine(judge(s) ? "YES" : "NO");
    }

    public static bool judge(string s)
    {
        StringBuilder stringBuilder = new StringBuilder(s);
        for (int i = 0; i < s.Length - 1; i++)
        {
            for (int j = 0; j <= s.Length - i; j++)
            {
                if (stringBuilder.Remove(i, j).ToString() == "keyence")
                {
                    return true;
                }
            }
        }
        return false;
    }
}
