There is a road beside a river. Two friends started from a place A, moved to a temple situated at another place B and then returned to A again. One of them moves on a cycle at a speed of 12 km/hr, while the other sails on a boat at a speed oi 10 km/hr. If the river flows at the speed of 4 km/hr, which of the two friends wit return to place A first ?