#include #include using namespace std; int dist[1000][1000],n,m; void init(){ int from,to,weight; scanf("%d %d",&n,&m); for(int i=0;i