def triplet_sum1(arr: list[int], target: int) -> tuple[int, ...]:
    for triplet in permutations(arr, 3):
        if sum(triplet) == target:
            return tuple(sorted(triplet))
    return (0, 0, 0)