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

public class Main {

	//0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	//0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} Main //0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		} catch(Exception ex){
			System.exit(0);
		} Exception ex {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		} String str = br.readLine(); str br.readLine() br.readLine br while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			} true {
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			} if(str == null){
					break;
				} str == null str null {
					break;
				} break; String[] st = str.split(" ",0); st str.split(" ",0) str.split str " " 0 int a =  Integer.parseInt(st[0]); a Integer.parseInt(st[0]) Integer.parseInt Integer st[0] st 0 int b = Integer.parseInt(st[1]); b Integer.parseInt(st[1]) Integer.parseInt Integer st[1] st 1 int sum = a+b; sum a+b a b 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 str = br.readLine() str br.readLine() br.readLine br String[] args args public class Main {

	//0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} public class Main {

	//0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	//0002
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String str = br.readLine();
			while(true){
				if(str == null){
					break;
				}
				String[] st = str.split(" ",0);
				int a =  Integer.parseInt(st[0]);
				int b = Integer.parseInt(st[1]);
				int sum = a+b;
				System.out.println(String.valueOf(sum).length());
				str = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
}