package main

import "fmt"

func main() {
	a, b := "", "keyence"
	fmt.Scanf("%s", &a)

	t := 0
	for i := range a {
		if a[i] == b[t] {
			t++
		}

		if t == len(b) {
			fmt.Println("YES")
			return
		}
	}

	fmt.Println("NO")
}