s = input()

chkStr = ["k","e","y","e","n","c","e"]

inpStr = list(s)
idx = 0

chkCount = 0


# print(chkStr)
# print(inpStr)
bParam = 0
stopParam = 0

for i in range(len(inpStr)):
    if chkStr[idx] == inpStr[i]:
        idx += 1
        chkCount += 1
    elif (bParam == 0 and stopParam == 0) or bParam != idx:
        bParam = idx
        stopParam += 1


    
    if idx == len(chkStr):
        break


if chkCount == len(chkStr) and stopParam <= 1:
    print("YES")
else:
    print("NO")




