The first line contains N, M, S, and E, separated by single spaces. (2≤N≤100000, N−1≤M≤300000, 1≤S,E≤N, S=E)
Each of the next M lines describes one road with A, B, and C, separated by single spaces. It means a road of length C joins town A and town B in both directions. (1≤A,B≤N, 1≤C≤1000000000)
Several roads may join the same pair of towns, and a road with A=B may appear.