import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	} main {
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc int b = 0; b 0 Long c = a; c a for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            } int i=1; int i=1; i 1 i<=Math.sqrt(a) i Math.sqrt(a) Math.sqrt Math a i++ i++ i {if(a%i==0){c=a/i;}
                            } {if(a%i==0){c=a/i;}
                            } if(a%i==0){c=a/i;} a%i==0 a%i a i 0 {c=a/i;} c=a/i c a/i a i while(c>0){c/=10;
                   b++;
                  } c>0 c 0 {c/=10;
                   b++;
                  } c/=10 c 10 b++ b System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        int b = 0;
		Long c = a;
        for(int i=1;i<=Math.sqrt(a);i++){if(a%i==0){c=a/i;}
                            }    
        while(c>0){c/=10;
                   b++;
                  }
		System.out.println(b);
	}
}
