import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        }
    } main {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        } in.hasNext() in.hasNext in {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        } String ab = in.nextLine(); ab in.nextLine() in.nextLine in String[] ls = ab.split(" ",0); ls ab.split(" ",0) ab.split ab " " 0 int[] ls2 = new int[2]; ls2 new int[2] 2 for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            } int i = 0 ; int i = 0 ; i 0 i < 2 i 2 i++ i++ i {
                ls2[i] = Integer.parseInt(ls[i]);
            } {
                ls2[i] = Integer.parseInt(ls[i]);
            } ls2[i] = Integer.parseInt(ls[i]) ls2[i] ls2 i Integer.parseInt(ls[i]) Integer.parseInt Integer ls[i] ls i int c = ls2[0] + ls2[1]; c ls2[0] + ls2[1] ls2[0] ls2 0 ls2[1] ls2 1 int ans = String.valueOf(c).length(); ans String.valueOf(c).length() String.valueOf(c).length String.valueOf(c) String.valueOf String c System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String ab = in.nextLine();
            String[] ls = ab.split(" ",0);
            int[] ls2 = new int[2];
            for (int i = 0 ; i < 2; i++) {
                ls2[i] = Integer.parseInt(ls[i]);
            }
            int c = ls2[0] + ls2[1];
            int ans = String.valueOf(c).length();
            System.out.println(ans);
        }
    }
}