import math N = int(input()) N = int(math.log10(N)) print(N//2)