A job scheduler retries failed tasks with capped exponential backoff. The
delay before retry attempt i (0-indexed) is:
delay_i = min(cap, base * 2**i)
Print the delay for each retry attempt and the total wait across all retries.
Input Format:
One line: base cap retries (three integers, retries >= 1)
Output Format:
One line per retry attempt: the delay
Final line: "total <sum>"