import math

n=int(eval(input()))

x=1

while(x<=n**0.5):

  if(n%x!=0):

    x+=1

  else:

    mins=int(math.log10(n//x))

    x+=1

    

print((mins+1))
import math

import sys

n=int(eval(input()))

mi=int(math.log10(n))

nb=n

m=1

for i in range(1,int(nb**0.5)+2):

  if(n%i==0):

    mi=min(mi,max(int(math.log10(n/i)),int(math.log10(i))))

print((mi+1))
import math

n = int(eval(input()))
x = 1
while x <= n**0.5:
    if n % x != 0:
        x += 1
    else:
        mins = int(math.log10(n // x))
        x += 1
print((mins + 1))

import math
import sys

n = int(eval(input()))
mi = int(math.log10(n))
nb = n
m = 1
for i in range(1, int(nb**0.5) + 2):
    if n % i == 0:
        mi = min(mi, max(int(math.log10(n / i)), int(math.log10(i))))
print((mi + 1))

+import sys -x = 1 -while x <= n**0.5: -    if n % x != 0: -        x += 1 -    else: -        mins = int(math.log10(n // x)) -        x += 1 -print((mins + 1)) +mi = int(math.log10(n)) +nb = n +m = 1 +for i in range(1, int(nb**0.5) + 2): +    if n % i == 0: +        mi = min(mi, max(int(math.log10(n / i)), int(math.log10(i)))) +print((mi + 1))