The point \(O\) is randomly chosen on piece of square paper. Then the square is folded in such a way that each vertex is overlaid on the point \(O\). The figure shows one of the possible folding schemes. Find the mathematical expectation of the number of sides of the polygon that appears.