import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main{
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int sum=0;
		while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util class Main{
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int sum=0;
		while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		}
    }
} Main public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int sum=0;
		while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		}
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int sum=0;
		while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str int sum=0; sum 0 while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		} (str=br.readLine()) != null (str=br.readLine()) str br.readLine() br.readLine br null {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		} if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			} !str.isEmpty() str.isEmpty() str.isEmpty str {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			} StringTokenizer tkn = new StringTokenizer(str, " "); tkn new StringTokenizer(str, " ") sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken()) sum Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken()) Integer.parseInt(tkn.nextToken()) Integer.parseInt Integer tkn.nextToken() tkn.nextToken tkn Integer.parseInt(tkn.nextToken()) Integer.parseInt Integer tkn.nextToken() tkn.nextToken tkn System.out.println((String.valueOf(sum)).length()) System.out.println System.out System System.out (String.valueOf(sum)).length() (String.valueOf(sum)).length (String.valueOf(sum)) String.valueOf String sum String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main{
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int sum=0;
		while((str=br.readLine()) != null) {
			if(!str.isEmpty()) {
				StringTokenizer tkn = new StringTokenizer(str, " ");
				sum = Integer.parseInt(tkn.nextToken())+Integer.parseInt(tkn.nextToken());
				System.out.println((String.valueOf(sum)).length());
			}
		}
    }
}