
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b x x count =0; count 0 int []result = new int[200]; result new int[200] 200 for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i++ i++ i {
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		} {
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		} if(sc.hasNext() == false) break; sc.hasNext() == false sc.hasNext() sc.hasNext sc false break; a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc x = a + b x a + b a b for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			} int j = 1; int j = 1; j 1 j++ j++ j {
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			} {
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			} if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				} x >= 10 x 10 {
					x = x/10;
				} x = x/10 x x/10 x 10 {
					result[i] = j;
					count++;
					break;
				} result[i] = j result[i] result i j count++ count break; for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			System.out.println(result[i]);
		} {
			System.out.println(result[i]);
		} System.out.println(result[i]) System.out.println System.out System System.out result[i] result i String args[] args public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	}
} public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a,b,x,count =0;
		int []result = new int[200];
		for(int i = 0;;i++){
			if(sc.hasNext() == false) break;
			a = sc.nextInt();
			b = sc.nextInt();
			x = a + b;
			for(int j = 1;;j++){
				if(x >= 10){
					x = x/10;
				} else {
					result[i] = j;
					count++;
					break;
				}
			}
		}
		for(int i = 0; i < count; i++){
			System.out.println(result[i]);
		}
	}
}