import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder("");
        int a, b, digit;
        while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        }
        System.out.print(sb);
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder("");
        int a, b, digit;
        while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        }
        System.out.print(sb);
    }
} Main public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder("");
        int a, b, digit;
        while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        }
        System.out.print(sb);
    } main {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder("");
        int a, b, digit;
        while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        }
        System.out.print(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(""); sb new StringBuilder("") int a a b b digit; digit while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        } sc.hasNextInt() sc.hasNextInt sc {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        } a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc digit = (int) Math.log10(a+b) + 1 digit (int) Math.log10(a+b) + 1 (int) Math.log10(a+b) Math.log10 Math a+b a b 1 sb.append(digit) sb.append sb digit sb.append('\n') sb.append sb '\n' System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder("");
        int a, b, digit;
        while (sc.hasNextInt()) {
            a = sc.nextInt();
            b = sc.nextInt();
            digit = (int) Math.log10(a+b) + 1;
            sb.append(digit);
            sb.append('\n');
        }
        System.out.print(sb);
    }
}