import java.util.Scanner;

public class Main {
  public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  }
} Main public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  } main {
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a a b b sum sum valLen; valLen while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	} s.hasNext() s.hasNext s {
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	} String line = s.nextLine(); line s.nextLine() s.nextLine s String[] array = line.split(" ",0); array line.split(" ",0) line.split line " " 0 a = Integer.parseInt(array[0]) a Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 b = Integer.parseInt(array[1]) b Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 sum = a + b sum a + b a b valLen = String.valueOf( sum ).length() valLen String.valueOf( sum ).length() String.valueOf( sum ).length String.valueOf( sum ) String.valueOf String sum System.out.println(valLen) System.out.println System.out System System.out valLen String[] args args public class Main {
  public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  }
} public class Main {
  public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args){
	Scanner s = new Scanner(System.in);
	int a , b , sum , valLen;

	while(s.hasNext()){
		String line = s.nextLine();
		String[] array = line.split(" ",0);
		a = Integer.parseInt(array[0]);
		b = Integer.parseInt(array[1]);
		sum = a + b;
		valLen = String.valueOf( sum ).length();
		System.out.println(valLen);
	}
  }
}