Marbles: C version

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

PASSED
Marbles: input

Correct output:
1
475020