problem 71 runs out of memory