Fred starts running from point \(A\) and must reach point \(B\). On the way, he has to touch the fence shown as a straight line in the figure. It doesn’t matter where he touches the fence, as long as he does. What is the shortest path he can take?