S = input().strip()

T = "keyence"

found = False
for start in range(len(T)):
    print(T[:start], T[start:])

    i = S.find(T[:start])
    if i == -1:
        continue
    # print(S[(i + start):])
    j = S[(i + start):].find(T[start:])
    # prijnt(i , j)
    if j > -1:
        found = True
        break

if found:
    print("YES")
else:
    print("NO")
