def total(amounts):
    return sum(amounts[:-1])
