import java.util.*;
public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     }
 } import java.util.*; util.* java public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     }
 } Main public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     } main {
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n n m; m String str; str List<Integer> list = new LinkedList<Integer>(); list new LinkedList<Integer>() while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	} scan.hasNext() scan.hasNext scan {
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	} n = scan.nextInt() n scan.nextInt() scan.nextInt scan m = scan.nextInt() m scan.nextInt() scan.nextInt scan str = String.valueOf(n+m) str String.valueOf(n+m) String.valueOf String n+m n m list.add(str.length()) list.add list str.length() str.length str for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	} Iterator<Integer> it = list.iterator(); Iterator<Integer> it = list.iterator(); it list.iterator() list.iterator list it.hasNext() it.hasNext it {
	    System.out.println(it.next());
	} {
	    System.out.println(it.next());
	} System.out.println(it.next()) System.out.println System.out System System.out it.next() it.next it String[] args args public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     }
 } public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     }
 } Main
import java.util.*;
public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int n,m;

	String str;

	List<Integer> list = new LinkedList<Integer>();

	while(scan.hasNext()){
	    n = scan.nextInt();
	    m = scan.nextInt();
	    str = String.valueOf(n+m);
 	    list.add(str.length());
 	}

	for(Iterator<Integer> it = list.iterator(); it.hasNext();){
	    System.out.println(it.next());
	}
     }
 }