Update problem47.py