Through the centers of some squares on an chessboard, a closed non-self-intersecting polygonal line is drawn. Each segment of the line connects the centers of adjacent squares horizontally, vertically, or diagonally. Prove that within the polygon bounded by this line, the total area of the black parts is equal to the total area of the white parts.