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