import re
key = list(str(input()))
keyence = list('keyence')
flag = 0

keylist = []
for i in range(len(keyence)):
    keyence.insert(i, '.*')

    key = ''.join(key)
    keyence = ''.join(keyence)

    result = re.match(keyence, key)
    if result:
        print("YES")
        quit()
    
    key = list(str(key))
    keyence = list(str(keyence))
    keyence.remove('.')
    keyence.remove('*')

print("NO")