import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    }
} Main public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    } main {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    } final String SPACE = " "; SPACE " " final String EMPTY = ""; EMPTY "" BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String str = br.readLine(); str br.readLine() br.readLine br int a; a int b; b String[] temp = new String[2]; temp new String[2] 2 for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        } int i = 0; int i = 0; i 0 i < 200 i 200 i++ i++ i {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        } {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        } if (EMPTY.equals(str) || str == null) {
                break;
            } EMPTY.equals(str) || str == null EMPTY.equals(str) EMPTY.equals EMPTY str str == null str null {
                break;
            } break; temp = str.split(SPACE) temp str.split(SPACE) str.split str SPACE a = Integer.parseInt(temp[0]) a Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 b = Integer.parseInt(temp[1]) b Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 sb.append(String.valueOf(a + b).length() + "\r\n") sb.append sb String.valueOf(a + b).length() + "\r\n" String.valueOf(a + b).length() String.valueOf(a + b).length String.valueOf(a + b) String.valueOf String a + b a b "\r\n" str = br.readLine() str br.readLine() br.readLine br System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        final String EMPTY = "";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String str = br.readLine();
        int a;
        int b;
        String[] temp = new String[2];
        for (int i = 0; i < 200; i++) {
            // 最終行であれば抜ける
            if (EMPTY.equals(str) || str == null) {
                break;
            }

            temp = str.split(SPACE);
            a = Integer.parseInt(temp[0]);
            b = Integer.parseInt(temp[1]);
            sb.append(String.valueOf(a + b).length() + "\r\n");

            str = br.readLine();
        }

        System.out.print(sb);
    }
}