Balance scale (#579) - Azerbaijan Computing Olympiad