Solve Euler 82