The sum of the largest and the smallest (#120) - Azerbaijan Computing Olympiad