Simple problem (#16) - Azerbaijan Computing Olympiad