import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    }
} Main public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    } main {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		} scanner.hasNext() scanner.hasNext scanner {	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int ans = a+b; ans a+b a b ans = String.valueOf( ans ).length() ans String.valueOf( ans ).length() String.valueOf( ans ).length String.valueOf( ans ) String.valueOf String ans System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    }
} public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();//??????????????°??????????????????
			int b = scanner.nextInt();//????????????????????????????????°??????????????????
			int ans = a+b;
			ans = String.valueOf( ans ).length();
			System.out.println(ans);
		}
    }
}