SRM 474 DIV 1 Easy - RouteIntersection: Accepted