S = input()
target = "keyence"
cnt = 0

for moji in S:
    if target in S:
        print("YES")
        break
    if moji == target[cnt]:
        cnt += 1
    else:
        if target[cnt:] in S and S[-(cnt+1):] == target[cnt:]:
            print("YES")
            break
        else:
            print("NO")
            break