import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		}
	}
}  import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		} scan.hasNext() scan.hasNext scan {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = a + b; c a + b a b String d = String.valueOf(c); d String.valueOf(c) String.valueOf String c int len = d.length(); len d.length() d.length d System.out.println(len) System.out.println System.out System System.out len String[] args args
import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = a + b;
			String d = String.valueOf(c);
			int len = d.length();
			System.out.println(len);
		}
	}
} 