package main

import "fmt"

func resolve(str string) bool {
	rep := map[string]int{}
	for _, v := range str {
		//v = string(v)
		if v == 'k' || v == 'e' || v == 'y' || v == 'n' || v == 'c' {
			rep[string(v)]++
		}
		//fmt.Println(string(v))
	}
	if rep["k"] >= 1 && rep["e"] >= 3 && rep["y"] >= 1 && rep["n"] >= 1 && rep["c"] >= 1 {
		return true
	} else {
		return false
	}
}
func main() {
	var str string
	fmt.Scanf("%s", &str)

	if resolve(str) {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}