Since the perimeter of the square is 2*sqrt(2), the side length of one side of the square is sqrt(2)/2. The diagonal of that square is then equal to sqrt(2)/2*sqrt(2) = 1.
Let x be the radius of one circle, and let y be the radius of the other circle.
Notice that the diagonal is equal to x*sqrt(2) + x + y*sqrt(2) + y.
. Therefore, x + y = sqrt(2) - 1.
Since the sum of the circumference of the circle is 2 times the radius times pi, just multiply 2pi to get the final answer: 2*sqrt(2)*pi - 2*pi.