import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

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

	public static void main(String[] args) {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

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

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		}
	} main {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		}
	} int a a b; b Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		} (scan.hasNext()) scan.hasNext scan {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		} a = Integer.parseInt(scan.next()) a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan b = Integer.parseInt(scan.next()) b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan String length = String.valueOf(a + b); length String.valueOf(a + b) String.valueOf String a + b a b System.out.println(length.length()) System.out.println System.out System System.out length.length() length.length length String[] args args public class Main {

	public static void main(String[] args) {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		}
	}
} public class Main {

	public static void main(String[] args) {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a,b;

		Scanner scan = new Scanner(System.in);

		while ((scan.hasNext())) {

			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			String length = String.valueOf(a + b);

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

		}
	}
}