(defn right_zeros
[np]
(loop [z 0 n np]
(if (or (< n 10) (not= (mod n 10) 0))
z
(recur (inc z) (/ n 10)))))
(println (right_zeros 123000))
(println (right_zeros 102030))
(println (right_zeros 123123))
(println (right_zeros 10))
(println (right_zeros 0))
(println (right_zeros 1))
KGRlZm4gcmlnaHRfemVyb3MKICBbbnBdCiAgICAobG9vcCBbeiAwIG4gbnBdCgkgICAgKGlmIChvciAoPCBuIDEwKSAobm90PSAobW9kIG4gMTApIDApKQoJCQl6CgkJCShyZWN1ciAoaW5jIHopICgvIG4gMTApKSkpKQoKCihwcmludGxuIChyaWdodF96ZXJvcyAxMjMwMDApKQoocHJpbnRsbiAocmlnaHRfemVyb3MgMTAyMDMwKSkKKHByaW50bG4gKHJpZ2h0X3plcm9zIDEyMzEyMykpCihwcmludGxuIChyaWdodF96ZXJvcyAxMCkpCihwcmludGxuIChyaWdodF96ZXJvcyAwKSkKKHByaW50bG4gKHJpZ2h0X3plcm9zIDEpKQ==