Sum and amount (#97) - Azerbaijan Computing Olympiad