import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	}

} Main public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	} main {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	} int num1; num1 int num2; num2 int goukei; goukei Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		} scan.hasNext() scan.hasNext scan {
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		} num1 = scan.nextInt() num1 scan.nextInt() scan.nextInt scan num2 = scan.nextInt() num2 scan.nextInt() scan.nextInt scan goukei = num1 + num2 goukei num1 + num2 num1 num2 String keta = String.valueOf(goukei); keta String.valueOf(goukei) String.valueOf String goukei System.out.println(keta.length()) System.out.println System.out System System.out keta.length() keta.length keta String[] args args public class Main {

	public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	}

} public class Main {

	public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		//??????????????°

		int num1;
		int num2;
		int goukei;

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			num1 = scan.nextInt();
			num2 = scan.nextInt();

			goukei = num1 + num2;

			String keta = String.valueOf(goukei);

			System.out.println(keta.length());
		}
	}

}