UVa 10494 - If We Were a Child Again

10494 - If We Were a Child Again
http://acm.uva.es/p/v104/10494.html

Summary
Divide a BigNum for a long integer, and print the (/) or the (%), according to the input signal.

Hints
Can have more than one space between the numbers and the signal. verify-it!

Input
110 / 100 99 % 10 2147483647 / 2147483647 2147483646 % 2147483647 13245678912345678913456789         /          123116 13245678912345678913456789          %          123116 0 / 10 0 % 10 123456789123456121654987654321654987654321354987654321654987456789123456789456123456789 / 3333333333

Output
1 9 1 2147483646 107586982295929683497 40137 0 0 37037036740740540170570350313553531327651759629061472459402384282677275465104