Code for problem 92.
Added code to read a list from stdin.