import java.io.*;
class Main{
  public static void main(String[] args) {
    try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){}
  }
} import java.io.*; io.* java class Main{
  public static void main(String[] args) {
    try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){}
  }
} Main public static void main(String[] args) {
    try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){}
  } main {
    try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){}
  } try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){} catch(Exception e){} Exception e {} {
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    } BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      } true {
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      } String[] str = br.readLine().split("\\s"); str br.readLine().split("\\s") br.readLine().split br.readLine() br.readLine br "\\s" if(str == null) throw new Exception(); str == null str null throw new Exception(); new Exception() int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]); a Integer.parseInt(str[0]) + Integer.parseInt(str[1]) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 String b = "" + a; b "" + a "" a System.out.println(b.length()) System.out.println System.out System System.out b.length() b.length b String[] args args
import java.io.*;
class Main{
  public static void main(String[] args) {
    try{
      BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));
      while(true){
        String[] str = br.readLine().split("\\s");
        if(str == null) throw new Exception();
        int a = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
        String b = "" + a;
        System.out.println(b.length());
      }
    }catch(Exception e){}
  }
}