MY USACO CODE SOLUTION