Roll this magic square into a tube by joining the upper and lower edges, then join the ends of the tube. Every row, column, and diagonal on the resulting torus will add to 34.

Bend this chessboard similarly into a torus, then mate in 4.

Hint: The solution comprises only two lines.