UVa 11879 - Multiple of 17

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