n = int(input()) cnt = 1 while 10 ** (2 * cnt) <= n: cnt += 1 print(cnt)