A single piece of cardboard is in the shape of four congruent rectangles and two congruent squares, so that shared sides are dotted, as shown. The area of each square is greater than 1. A rectangular prism (a box) with a volume of 175 cm' is formed when the cardboard is folded along the dotted segments. The perimeter of the unfolded cardboard sheet is N cm. Find N if all dimensions have integer values.