You are given an undirected weighted graph with n vertices and m edges.
Consider all shortest paths between vertices 1 and n, for any vertex such as v (1≤v≤n), say that, if v is in either all shortest paths or some of them or none of them.
Input format
Output format
Print n lines where the ith line contains either all if vertex i is in all shortest paths between 1 to n or some if vertex i is in some of shortest paths or none otherwise.
Constraints
1≤n≤2×1051≤m≤3×105
1≤vi,ui≤n1≤wi≤109
It is guaranteed that there are no multiple edges or self-loops in the graph.
Also, it is guaranteed that the graph is connected.
The only shortest path is 1,5,6, so they are in all shortest paths and others are in no shortest paths.