Strong connectivity (#510) - Azerbaijan Computing Olympiad