package main

import (
        "fmt"
)

func solution(s string) string {
        const KEY = "keyence"
        i, j := 0, 0
        for i < len(s) && j < len(KEY) {
                if s[i] == KEY[j] {
                        i++
                        j++
                } else {
                        i++
                }
        }
        if j == len(KEY) {
                return "YES"
        }
        return "NO"
}

func main() {
        var s string
        fmt.Scan(&s)
        fmt.Println(solution(s))
}