S = input().strip()

T = "keyence"

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

    try:
        i = S.index(T[:start])
        j = S.index(T[start:], i + 1)
        found = True
        break
    except ValueError:
        found = False

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