The upper side of a piece of square paper is white, and the lower one is red. In the square, a point F is randomly chosen. Then the square is bent so that one randomly selected vertex overlaps the point F. Find the mathematical expectation of the number of sides of the red polygon that appears.