problem 177 - paper folding