package main

import (
	"fmt"
	"regexp"
)

func main() {
	var line string
	fmt.Scan(&line)
	keyence := "keyence"
	for i := 0; i < len(keyence) + 1; i++ {
		reg := keyence[:i] + ".*" + keyence[i:]
		b, _ := regexp.Match(reg, []byte(line))
		if b {
			fmt.Println("YES")
			return
		}
	}
	fmt.Println("NO")
}