package main

import (
	"fmt"
	"strings"
)

func main() {
	var s string
	fmt.Scanf("%s\n", &s)
	l := len(s)
	for i := 0; i < l; i++ {
		for j := 0; j < l - i; j++ {
			if strings.Contains(s[:i] + s[i+j:], "keyence") {
				fmt.Println("YES")
				return
			}
		}
	}
	fmt.Println("NO")
}
