Store Credit

https://code.google.com/codejam/contest/dashboard?c=351101#s=p0