import java.util.Scanner;

class Main {
	public static int a, b;
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		}
	}
	
	public static void solve() {
		a += b;
		int ans = 1;
		while(a / 10 > 0){
			a /= 10;
			ans++;
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static int a, b;
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		}
	}
	
	public static void solve() {
		a += b;
		int ans = 1;
		while(a / 10 > 0){
			a /= 10;
			ans++;
		}
		System.out.println(ans);
	}
} Main public static int a a b; b public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		}
	} main {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		}
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		} cin.hasNextInt() cin.hasNextInt cin {
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		} a = cin.nextInt() a cin.nextInt() cin.nextInt cin b = cin.nextInt() b cin.nextInt() cin.nextInt cin solve() solve String[] args args public static void solve() {
		a += b;
		int ans = 1;
		while(a / 10 > 0){
			a /= 10;
			ans++;
		}
		System.out.println(ans);
	} solve {
		a += b;
		int ans = 1;
		while(a / 10 > 0){
			a /= 10;
			ans++;
		}
		System.out.println(ans);
	} a += b a b int ans = 1; ans 1 while(a / 10 > 0){
			a /= 10;
			ans++;
		} a / 10 > 0 a / 10 a 10 0 {
			a /= 10;
			ans++;
		} a /= 10 a 10 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans
import java.util.Scanner;

class Main {
	public static int a, b;
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNextInt()){
			a = cin.nextInt();
			b = cin.nextInt();
			solve();
		}
	}
	
	public static void solve() {
		a += b;
		int ans = 1;
		while(a / 10 > 0){
			a /= 10;
			ans++;
		}
		System.out.println(ans);
	}
}