import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    }
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    }
  } main {
    Scanner sc = new Scanner(System.in);

    while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    } sc.hasNextInt() sc.hasNextInt sc {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int val  = a+b; val a+b a b int cnt = 0; cnt 0 while(val > 0) {
        cnt++;
        val /= 10;
      } val > 0 val 0 {
        cnt++;
        val /= 10;
      } cnt++ cnt val /= 10 val 10 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    while (sc.hasNextInt()) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int val  = a+b;
      int cnt = 0;
      while(val > 0) {
        cnt++;
        val /= 10;
      }
      System.out.println(cnt);
    }
  }
}