n,c = int(input()),0 while True: if not n % 10: c += 1 n //= 10 else: break print(c)
import reprint(len(re.findall(r'0*$', input())[0]))