import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner sc = new Scanner(System.in);
		    
		    long N = sc.nextLong();
		    int waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); }
		  } 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 waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); }
		  } Main public static void main(String args[]) {
		    Scanner sc = new Scanner(System.in);
		    
		    long N = sc.nextLong();
		    int waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); } main {
		    Scanner sc = new Scanner(System.in);
		    
		    long N = sc.nextLong();
		    int waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc int waru = 0; waru 0 for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    } 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) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    } {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    } if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	} N % i == 0 N % i N i 0 {
		    		waru = i;
		    	} waru = i waru i {
		    	} long shou = N / waru; shou N / waru N waru int kotae = 0; kotae 0 while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    } shou != 0 shou 0 {
		    	shou = shou/10;
		    	kotae++;
		    } shou = shou/10 shou shou/10 shou 10 kotae++ kotae System.out.println(kotae) System.out.println System.out System System.out kotae sc.close() sc.close sc String args[] args public class Main {
	  
	public static void main(String args[]) {
		    Scanner sc = new Scanner(System.in);
		    
		    long N = sc.nextLong();
		    int waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); }
		  } public class Main {
	  
	public static void main(String args[]) {
		    Scanner sc = new Scanner(System.in);
		    
		    long N = sc.nextLong();
		    int waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); }
		  } 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 waru = 0;
		    for(int i = 1; i <= Math.sqrt(N); i++) {
		    	if(N % i == 0) {
		    		waru = i;
		    	}
		    	else {
		    	}
		    }
		    long shou = N / waru;
		    int kotae = 0;
		    
		    while(shou != 0){
		    	shou = shou/10;
		    	kotae++;
		    }
		    System.out.println(kotae);
		    
		    sc.close(); }
		  }
