#! /usr/bin/env python
import sys

CHECK_STRING = 'keyence'

def main():
    line = sys.stdin.readline().strip()

    CheckKeys = list(CHECK_STRING)
    checkChar = CheckKeys.pop(0)

    exceptionCount = 0
    lastMatch = True
    for i in list(line):
        if i == checkChar:
            if len(CheckKeys) != 0:
                checkChar = CheckKeys.pop(0)
        else:
            if lastMatch:
                exceptionCount += 1

        lastMatch = i == checkChar

    if len(CheckKeys) == 0 and exceptionCount <= 1:
        print('YES')
    else:
        print('NO')


main()

