Solution to the problem.

adds.py is the best program I ever wrote.