Analysis of the shape of a sheet of paper when two opposite edges are joined