s = input() count=0 for i in range(1,len(s)): s1 = s[:i] s2 = s[i:] if s1[0]!="0" and s2[0]!="0": count+=1 print(count)