package main

import (
	"bufio"
	"fmt"
	"os"
	"regexp"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var str string
	scanner.Scan()
	fmt.Sscanf(scanner.Text(), "%s", &str)
	//	chars := strings.Split(str, "")
	//	fmt.Println(chars)
	r := regexp.MustCompile(`.*keyence|k.*eyence|ke.*yence|key.*ence|keye.*nce|keyen.*ce|keyenc.*e|keyence.*`)
	if r.MatchString(str) {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}

}
