Simplified 205.py solution.
Simplified 087.py solution.