S = input()


if "keyence" in S:
    print("YES")
    exit(0)

x = "keyence"

for i in range(len(x)):
    try:
        index1 = S.index(x[:i])
        index2 = S.rindex(x[i:])
        if index1<index2:
            print("YES")
            exit()
    except ValueError:
        continue
print("NO")