Smarter output in itertools version of problem 24