C = input() st = set() for i in range(1, len(C)): a = C[:i] b = C[i:] if a[0] == "0" or b[0] == "0": continue st.add(a + " " + b) print(len(st))