Fixed input, now fixing dijkstra