import re
ms = re.finditer("k(.*)e(.*)y(.*)e(.*)n(.*)c(.*)e",input())
compFlag = False
for i in ms:
    noCount = 0
    for j in range(6):
        if len(i.group(j+1)) > 0:
            noCount += 1
    if noCount <= 1:
        compFlag = True
        break
print("YES" if compFlag else "NO")
