package main

import (
        "fmt"
)

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

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