import java.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int sum = 0;

	while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	}
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int sum = 0;

	while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	}
    }
} Main public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int sum = 0;

	while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	}
    } main {
	Scanner scan = new Scanner(System.in);
	int sum = 0;

	while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int sum = 0; sum 0 while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	} scan.hasNext() scan.hasNext scan {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	} sum = scan.nextInt() + scan.nextInt() sum scan.nextInt() + scan.nextInt() scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan System.out.println((sum+"").length()) System.out.println System.out System System.out (sum+"").length() (sum+"").length (sum+"") sum "" String args[] args
import java.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int sum = 0;

	while (scan.hasNext()) {
	    sum = scan.nextInt() + scan.nextInt();
	    System.out.println((sum+"").length());
	}
    }
}