
import java.util.*;
import java.lang.*;
import java.math.*;

class Main {

	Scanner sc = new Scanner(System.in);

	void run() {
		
		int x;
		
		while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		}
		return;

	}

	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.math.*; math.* java class Main {

	Scanner sc = new Scanner(System.in);

	void run() {
		
		int x;
		
		while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		}
		return;

	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run() {
		
		int x;
		
		while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		}
		return;

	} run {
		
		int x;
		
		while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		}
		return;

	} int x; x while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		} sc.hasNextInt() sc.hasNextInt sc {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		} x = sc.nextInt() + sc.nextInt() x sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int count = 0; count 0 do{
				x /= 10;
				count++;
			} while ( x != 0); x != 0 x 0 {
				x /= 10;
				count++;
			} x /= 10 x 10 count++ count System.out.println(count) System.out.println System.out System System.out count return; public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args

import java.util.*;
import java.lang.*;
import java.math.*;

class Main {

	Scanner sc = new Scanner(System.in);

	void run() {
		
		int x;
		
		while ( sc.hasNextInt() ) {
			x = sc.nextInt() + sc.nextInt();
			
			
			
			int count = 0;
			
			do{
				x /= 10;
				count++;
			} while ( x != 0);
			
			
			System.out.println(count);
			
		}
		return;

	}

	public static void main(String[] args) {
		new Main().run();
	}
}