UVa 11879 - Multiple of 17

11879 - Multiple of 17

 * http://uva.onlinejudge.org/external/118/11879.html

Summary
Check if a positive number less than or equal to $$10^100$$ is divisible by 17.

Explanation
Read the number as a string. Follow the algorithm given in the description or just simply do BigInteger modulo division to obtain the result.

Input
34 201 2098765413 1717171717171717171717171717171717171717171717171718 0

Output
1 0 1 0