import java.util.Scanner;

class Main{



    public static void main(String[] a){


        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        }

        sc.close();


     }




} import java.util.Scanner; Scanner java.util class Main{



    public static void main(String[] a){


        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        }

        sc.close();


     }




} Main public static void main(String[] a){


        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        }

        sc.close();


     } main {


        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        }

        sc.close();


     } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        } sc.hasNext() sc.hasNext sc {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        } int z = sc.nextInt(); z sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int ans = z + y; ans z + y z y String ansSt = String.valueOf(ans); ansSt String.valueOf(ans) String.valueOf String ans int ansK = ansSt.length(); ansK ansSt.length() ansSt.length ansSt System.out.println(ansK) System.out.println System.out System System.out ansK sc.close() sc.close sc String[] a a
import java.util.Scanner;

class Main{



    public static void main(String[] a){


        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()) {


	        	int z = sc.nextInt();
	        	int y = sc.nextInt();

	        	int ans = z + y;
	        	String ansSt = String.valueOf(ans);
	        	int ansK = ansSt.length();
	        	System.out.println(ansK);

        }

        sc.close();


     }




}