Create problem39.py