import math

n = int(eval(input()))

nn = int(math.sqrt(n))

while n%nn != 0: nn-=1

ans = len(str(n//nn))

print(ans)
import math

n = int(eval(input()))

a = int(math.sqrt(n))

while n%a != 0: a-=1

print((len(str(n//a))))
import math

n = int(eval(input()))
nn = int(math.sqrt(n))
while n % nn != 0:
    nn -= 1
ans = len(str(n // nn))
print(ans)

import math

n = int(eval(input()))
a = int(math.sqrt(n))
while n % a != 0:
    a -= 1
print((len(str(n // a))))

-nn = int(math.sqrt(n)) -while n % nn != 0: -    nn -= 1 -ans = len(str(n // nn)) -print(ans) +a = int(math.sqrt(n)) +while n % a != 0: +    a -= 1 +print((len(str(n // a))))