The shortest path (#524) - Azerbaijan Computing Olympiad