import java.util.*;
public class Main {
 public static void main (String[] args){

	 	Scanner sc = new Scanner(System.in);
	 	
	 	// 整数の入力
	 	String str = sc.nextLine();
	 	String out = "NO";
	 	for (int i =0; i< str.length(); i++){
	 		String strTry = str.substring(0,i)+str.substring(i+str.length()-7);
	 		if (strTry.equals("keyence")){
	 			out = "YES";
	 			break;
	 		}
	 	}



	 	// 出力
	 	
	 	System.out.println(out);

	 
	 
 }
	
}
