You are given an undirected connected graph with nodes and edges. Every node has a value assigned to it.
The value of a simple path between node and is as follows:
Find the minimum possible path value of any simple paths between start and end nodes.
Input format
Output format
Print the minimum possible path value of any simple path between start and end nodes.
Constraints
There are 3 simple paths between nodes 2 and 4 :-