Intercept

No attempts yetTime limit1sMemory limit256 MB

Problem

Fatima rides the subway home from KTH every day. Today Robert baked cookies and wants to surprise her by bringing them to a station somewhere along the way. Fatima does not always take the same route home, because she likes to look at the artwork inside the different stations of Stockholm. She always keeps her travel time as short as possible, so she only uses shortest routes. Tell Robert which stations he can go to and still be certain to meet Fatima.

In other words, report every station that all shortest paths from ss to tt pass through.

Input

The first line contains two integers NN and MM, the number of subway stations and the number of subway links. (1N,M1000001 \le N, M \le 100\,000)

Each of the next MM lines contains three integers uu, vv, ww (0u,v<N0 \le u, v < N, 0<w10000000000 < w \le 1\,000\,000\,000), meaning that there is a one way link from station uu to station vv that takes ww seconds to complete. Different subway lines may serve the same route, so the same pair (u,v)(u, v) can appear more than once.

The last line contains two integers ss and tt (0s,t<N0 \le s, t < N), the number of the station closest to KTH and the number of the station closest to home. Station tt is reachable from station ss.

Output

Print on one line every station number uu such that all shortest paths from ss to tt pass through uu, in increasing order. Separate the numbers with single spaces.