{"raw_statement":[{"iden":"problem statement","content":"You are given an integer $N$.  \nFor two positive integers $A$ and $B$, we will define $F(A,B)$ as the larger of the following: the number of digits in the decimal notation of $A$, and the number of digits in the decimal notation of $B$.  \nFor example, $F(3,11) = 2$ since $3$ has one digit and $11$ has two digits.  \nFind the minimum value of $F(A,B)$ as $(A,B)$ ranges over all pairs of positive integers such that $N = A \\times B$."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^{10}$\n*   $N$ is an integer."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"10000"},{"iden":"sample output 1","content":"3\n\n$F(A,B)$ has a minimum value of $3$ at $(A,B)=(100,100)$."},{"iden":"sample input 2","content":"1000003"},{"iden":"sample output 2","content":"7\n\nThere are two pairs $(A,B)$ that satisfy the condition: $(1,1000003)$ and $(1000003,1)$. For these pairs, $F(1,1000003)=F(1000003,1)=7$."},{"iden":"sample input 3","content":"9876543210"},{"iden":"sample output 3","content":"6"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}