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

class Main
{
	public static void main(String[] args){
		java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
		String line;
		StringTokenizer st;

		try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} 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[] args){
		java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
		String line;
		StringTokenizer st;

		try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args){
		java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
		String line;
		StringTokenizer st;

		try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	} main {
		java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
		String line;
		StringTokenizer st;

		try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	} java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in)); br new java.io.BufferedReader(new InputStreamReader(System.in)) String line; line StringTokenizer st; st try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		} catch(IOException e){
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		} line = br.readLine() line br.readLine() br.readLine br while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			} line != null line null {
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			} st = new StringTokenizer(line) st new StringTokenizer(line) int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()); s Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st System.out.println((int)Math.log10(s) + 1) System.out.println System.out System System.out (int)Math.log10(s) + 1 (int)Math.log10(s) Math.log10 Math s 1 line = br.readLine() line br.readLine() br.readLine br String[] args args
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main
{
	public static void main(String[] args){
		java.io.BufferedReader br = new java.io.BufferedReader(new InputStreamReader(System.in));
		String line;
		StringTokenizer st;

		try{
			line = br.readLine();
			while(line != null){
				st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println((int)Math.log10(s) + 1);
				line = br.readLine();
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}