p053.py: solution to p053