problem47.py added