Problem 25

Python 2.7