import math import sys import decimal N = int(input()) ans = 0 ans = math.ceil(math.log10(N)/2) print(ans)