Problem 92, Python