problem 243.py