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

class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        StringTokenizer st;
        int add = 0;
        while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        StringTokenizer st;
        int add = 0;
        while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        }
    }
} Main public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        StringTokenizer st;
        int add = 0;
        while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        StringTokenizer st;
        int add = 0;
        while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = ""; str "" StringTokenizer st; st int add = 0; add 0 while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        } st = new StringTokenizer(str, " ") st new StringTokenizer(str, " ") add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) add 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 int keta = Integer.toString(add).length(); keta Integer.toString(add).length() Integer.toString(add).length Integer.toString(add) Integer.toString Integer add System.out.println(keta) System.out.println System.out System System.out keta String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        StringTokenizer st;
        int add = 0;
        while ((str = br.readLine()) != null) {
            st = new StringTokenizer(str, " ");
            add = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
            int keta = Integer.toString(add).length();
	    System.out.println(keta);
        }
    }
}