package main

import (
	"fmt"
	"strings"
)

func resolve(str string) bool {

	var keyword = []string{"k", "e", "y", "e", "n", "c", "e"}
	typen := make(map[int]map[int]string)

	for i := 0; i < len(keyword); i++ {
		typen[i] = make(map[int]string)
		for j := 0; j <= i; j++ {
			typen[i][0] += keyword[j]
		}
		for k := i + 1; k <= len(keyword)-1; k++ {
			typen[i][1] += keyword[k]
		}
		if i == 6 {
			typen[i][1] = " "
		}
	}

	ans := false
	for i := 0; i < len(keyword); i++ {
		if strings.Contains(str, typen[i][0]) {
			spl := strings.Split(str, typen[i][0])
			for j := 0; j <= len(spl)-1; j++ {
				if spl[0] != "" {
					return false
				}
				if strings.Contains(spl[j], typen[i][1]) == true {
					spl2 := strings.Split(spl[j], typen[i][1])
					if spl2[1] == "" {
						ans = true
					}
				}
			}
		}
		if ans {
			break
		}
	}
	return ans
}
func main() {
	var str string
	fmt.Scanf("%s", &str)
	if resolve(str) {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}