N = int(input()) import math a = 1 b = 1 if N <= 10: print(b) while N > a ** 2: a = a * 10 b += 1 if N <= a ** 2: print(b)