import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static byte rightZeros(long n) {
for (byte z = 0; ; z++, n /= 10) {
if (n < 10 || n % 10 != 0) return z;
}
}
{
System.
out.
println(rightZeros
(123000L
)); System.
out.
println(rightZeros
(102030L
)); System.
out.
println(rightZeros
(123123L
)); System.
out.
println(rightZeros
(10L
)); System.
out.
println(rightZeros
(1L
)); System.
out.
println(rightZeros
(0L
)); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgYnl0ZSByaWdodFplcm9zKGxvbmcgbikgewoJCWZvciAoYnl0ZSB6ID0gMDsgOyB6KyssIG4gLz0gMTApIHsKCQkJaWYgKG4gPCAxMCB8fCBuICUgMTAgIT0gMCkgcmV0dXJuIHo7CgkJfQoJfQoJCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTeXN0ZW0ub3V0LnByaW50bG4ocmlnaHRaZXJvcygxMjMwMDBMKSk7CgkJU3lzdGVtLm91dC5wcmludGxuKHJpZ2h0WmVyb3MoMTAyMDMwTCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihyaWdodFplcm9zKDEyMzEyM0wpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4ocmlnaHRaZXJvcygxMEwpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4ocmlnaHRaZXJvcygxTCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihyaWdodFplcm9zKDBMKSk7Cgl9Cn0=