solve problem 20 in python
solve problem 18 in python
solve problem 25 in python
#17 begin