import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.*;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.Math;
import java.lang.String;
import java.lang.System;
import java.util.StringTokenizer;


class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io import java.lang.*; lang.* java import java.lang.Exception; Exception java.lang import java.lang.Integer; Integer java.lang import java.lang.Math; Math java.lang import java.lang.String; String java.lang import java.lang.System; System java.lang import java.util.StringTokenizer; StringTokenizer java.util class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} Main public static void main(String[] a) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        }
    } main {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        }
    } BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } String s = r.readLine(); s r.readLine() r.readLine r StringTokenizer st; st while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            } s != null s null {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            } st = new StringTokenizer(s) st new StringTokenizer(s) int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()); sum Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st System.out.println((int)Math.log10(sum) + 1) System.out.println System.out System System.out (int)Math.log10(sum) + 1 (int)Math.log10(sum) Math.log10 Math sum 1 s = r.readLine() s r.readLine() r.readLine r String[] a a
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.*;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.Math;
import java.lang.String;
import java.lang.System;
import java.util.StringTokenizer;


class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        try {
            String s = r.readLine();
            StringTokenizer st;
            while(s != null) {
                st = new StringTokenizer(s);
                int sum = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
                System.out.println((int)Math.log10(sum) + 1);
                s = r.readLine();
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
}