Solve problem 95 using Python.