The weighted undirected graph is given. Find the weight of the minimum path between two vertices.
First line contains two integers and (n \leq 1000, m \leq 10000) - the number of vertices and edges in the graph correspondingly. Second line contains positive integers and (s, t \leq n, s \neq t) - the numbers of the vertices between which you need to find the weight of the minimum path. Next lines contain the description of edges, one edge in a line. The edge number is described with three positive integers b_i, e_i and w_i - the numbers of vertices connected by the edge and the edge weight (b_i, e_i \leq n, 0 \leq w_i \leq 10^5). It is guaranteed that the path between and exists.
Print one number - the weight of the minimum path between the vertices and .
Example 1