David can row a boat in still water at the rate of 5 km/hr. He rowed in a river downstream to meet his friend. After returning back, he observed that the duration of the upstream journey was three times that of the downstream journey. The speed of the stream was: