package main

import "fmt"

func main() {
	var s string
	fmt.Scanf("%s\n", &s)

	var ans = "keyence"

	flg := "NO"
	for i := 0; i < len(ans); i++ {

		if (s[:i] == ans[:i]) && (s[len(s)-i-1:] == ans[i:]) {
			flg = "YES"
			break
		}
	}

	fmt.Println(flg)

}
