using System;
using System.Collections.Generic;
using System.Linq;
class Program{
    static void Main(){
        string s = Console.ReadLine();
        int n = s.Length - 7;
        for (int i = 0;i <= n;i++){
            List<char> l = new List<char>();
            for (int j = 0;j < i;j++)
                l.Add(s[j]);
            for (int j = i + n;j < s.Length;j++)
                l.Add(s[j]);
            bool f = true;
            string s2 = "keyence";
            for (int j = 0;j < 7;j++)
                f = f && s2[j] == l[j];
            if (f){
                Console.WriteLine("YES");
                return;
            } 
        }
        Console.WriteLine("NO");
    }
}