problem033 in python
problem038 byhand