package main

import (
	"fmt"
)

func main() {
	var S string
	var Ki int
	check := make([]byte, 0)
	K := "keyence"
	fmt.Scan(&S)
	for i := 0; i < len(S); i++ {
		if S[i] == K[Ki] {
			check = append(check, S[i])
			Ki++
		}
		if Ki == len(K) {
			break
		}
	}
	if string(check) == K {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
