S = input()
T = "keyence"
lenS = len(S)
lenT = len(T)

i = 0
j = 0
while True:
    if j == lenT:
        print("YES")
        break
    if i == lenS:
        print("NO")
        break

    if S[i] == T[j]:
        j += 1
    i += 1

