14.py solution