The plan of a Martian underground is represented by a closed selfintersecting curve, with at most one self-intersection at each point. Prove that a tunnel for such a plan may be constructed in such a way that the train passes consecutively over and under the intersecting parts of the tunnel.