A man and a dog are walking. The dog waits for the man to start walking along a path and then runs to the end of the path and back to the man a total of four times, always moving at a constant speed. The last time the dog runs back to the man, it covers the remaining distance of 81 meters. The distance from the door to the end of the path is 625 meters. Find the speed of the dog if the man is walking at a speed of 4 km/h.