import java.util.Scanner;
class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		}
	}
} Main public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		} scanner.hasNext() scanner.hasNext scanner {	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int sum = a+b; sum a+b a b if(sum<10){
				System.out.println("1");
			} sum<10 sum 10 {
				System.out.println("1");
			} System.out.println("1") System.out.println System.out System System.out "1" if(sum<100 && sum>9){
				System.out.println("2");
			} sum<100 && sum>9 sum<100 sum 100 sum>9 sum 9 {
				System.out.println("2");
			} System.out.println("2") System.out.println System.out System System.out "2" if(sum<1000 && sum>99){
				System.out.println("3");
			} sum<1000 && sum>99 sum<1000 sum 1000 sum>99 sum 99 {
				System.out.println("3");
			} System.out.println("3") System.out.println System.out System System.out "3" if(sum<10000 && sum>999){
				System.out.println("4");
			} sum<10000 && sum>999 sum<10000 sum 10000 sum>999 sum 999 {
				System.out.println("4");
			} System.out.println("4") System.out.println System.out System System.out "4" if(sum<100000 && sum>9999){
				System.out.println("5");
			} sum<100000 && sum>9999 sum<100000 sum 100000 sum>9999 sum 9999 {
				System.out.println("5");
			} System.out.println("5") System.out.println System.out System System.out "5" if(sum<1000000 && sum>99999){
				System.out.println("6");
			} sum<1000000 && sum>99999 sum<1000000 sum 1000000 sum>99999 sum 99999 {
				System.out.println("6");
			} System.out.println("6") System.out.println System.out System System.out "6" if(sum<10000000 && sum>999999){
				System.out.println("7");
			} sum<10000000 && sum>999999 sum<10000000 sum 10000000 sum>999999 sum 999999 {
				System.out.println("7");
			} System.out.println("7") System.out.println System.out System System.out "7" String args[] args
import java.util.Scanner;
class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int sum = a+b;
			if(sum<10){
				System.out.println("1");
			}
			if(sum<100 && sum>9){
				System.out.println("2");
			}
			if(sum<1000 && sum>99){
				System.out.println("3");
			}
			if(sum<10000 && sum>999){
				System.out.println("4");
			}
			if(sum<100000 && sum>9999){
				System.out.println("5");
			}
			if(sum<1000000 && sum>99999){
				System.out.println("6");
			}
			if(sum<10000000 && sum>999999){
				System.out.println("7");
			}
		}
	}
}