Code cleaned up, submitted - 0.03 seconds

http://www.codechef.com/problems/COINS