There is a running man running around the world.Now here are some places he will run to.Between two places exists distance.Now he is at A,he will go to B,C,D,E and else.
You should output the minimum distance from starting point(place A) to every other places.If he can not go to place y,you should output 'No'.
A B 7
A C 10
A D 3
A E 8
A F No