import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        }
    } import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        }
    } Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        } main {
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc int count=0; count 0 String B; B for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        } int i=1; int i=1; i 1 i<=Math.sqrt(N) i Math.sqrt(N) Math.sqrt Math N i++ i++ i {
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        } {
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        } if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            } N%i==0 N%i N i 0 {
                B = String.valueOf(N/i);
                count = B.length();
            } B = String.valueOf(N/i) B String.valueOf(N/i) String.valueOf String N/i N i count = B.length() count B.length() B.length B System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        }
    } public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        }
    } Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int count=0;
        String B;
        for(int i=1; i<=Math.sqrt(N); i++){
            if(N%i==0){
                B = String.valueOf(N/i);
                count = B.length();
            }
        }
          System.out.println(count);
        }
    }
