import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	}

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

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	}

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

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	} main {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		} stdin.hasNext() stdin.hasNext stdin {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		} int x = stdin.nextInt(); x stdin.nextInt() stdin.nextInt stdin int y = stdin.nextInt(); y stdin.nextInt() stdin.nextInt stdin int z = x + y; z x + y x y BigDecimal.valueOf(z).precision() BigDecimal.valueOf(z).precision BigDecimal.valueOf(z) BigDecimal.valueOf BigDecimal z System.out.println(BigDecimal.valueOf(z).precision()) System.out.println System.out System System.out BigDecimal.valueOf(z).precision() BigDecimal.valueOf(z).precision BigDecimal.valueOf(z) BigDecimal.valueOf BigDecimal z String[] args args public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	}

} public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	}

} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		while(stdin.hasNext()) {
			int x = stdin.nextInt();
			int y = stdin.nextInt();
			int z = x + y;
			BigDecimal.valueOf(z).precision();
			System.out.println(BigDecimal.valueOf(z).precision());
		}

	}

}