using System;
using System.Collections.Generic;
using System.Linq;
class Program{
	const int mod=1000000007;
	static void Main(){
		string k="keyence";
		string s=Console.ReadLine();
		string ans="NO";
		for(int i=0;i<=s.Length-7;i++){
			if(s[i]=='k'){
				int q=0;
				for(int j=7;j>0;j--){
					if(s.Substring(i,j)==k.Substring(0,j)){
						q=j;
						break;
					}
				}
				for(int j=i+q;j<=s.Length-(7-q);j++){
					if(s.Substring(j,7-q)==k.Substring(q,7-q)){
						ans="YES";
						break;
					}
				}
			}
		}
		Console.WriteLine("{0}",ans);
	}
}