N=int(eval(input()))

result=0

count = 1

while count*count <= N:

  if N % count == 0:

    result=count

  count+=1

print((len(str(N//result))))
n,r=int(eval(input())),1e9

for i in range(1,int(n**.5)+1):

  if n%i==0: r=min(r,max(len(str(i)),len(str(n//i))))

print(r)
N = int(eval(input()))
result = 0
count = 1
while count * count <= N:
    if N % count == 0:
        result = count
    count += 1
print((len(str(N // result))))

n, r = int(eval(input())), 1e9
for i in range(1, int(n**0.5) + 1):
    if n % i == 0:
        r = min(r, max(len(str(i)), len(str(n // i))))
print(r)

-N = int(eval(input())) -result = 0 -count = 1 -while count * count <= N: -    if N % count == 0: -        result = count -    count += 1 -print((len(str(N // result)))) +n, r = int(eval(input())), 1e9 +for i in range(1, int(n**0.5) + 1): +    if n % i == 0: +        r = min(r, max(len(str(i)), len(str(n // i)))) +print(r)