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

public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    }
  }
} 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 {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    }
  }
} Main public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    }
  } main {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    }
  } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    } {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line; line String[] digit; digit int sum; sum String buf; buf StringBuilder result = new StringBuilder(); result new StringBuilder() while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      } true {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      } if( (line = br.readLine()) == null || line.isEmpty() ) break; (line = br.readLine()) == null || line.isEmpty() (line = br.readLine()) == null (line = br.readLine()) line br.readLine() br.readLine br null line.isEmpty() line.isEmpty line break; digit = line.split(" ") digit line.split(" ") line.split line " " sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] ) sum Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] ) Integer.parseInt( digit[0] ) Integer.parseInt Integer digit[0] digit 0 Integer.parseInt( digit[1] ) Integer.parseInt Integer digit[1] digit 1 buf = String.valueOf(sum) buf String.valueOf(sum) String.valueOf String sum result.append(buf.length()).append("\n") result.append(buf.length()).append result.append(buf.length()) result.append result buf.length() buf.length buf "\n" System.out.print(result) System.out.print System.out System System.out result String[] args args public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

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

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

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

public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      String line;
      String[] digit;
      int sum;
      String buf;
      StringBuilder result = new StringBuilder();
      while(true) {

        if( (line = br.readLine()) == null || line.isEmpty() ) break;

        digit = line.split(" ");
        sum = Integer.parseInt( digit[0] ) + Integer.parseInt( digit[1] );
        buf = String.valueOf(sum);
        result.append(buf.length()).append("\n");
      }

      System.out.print(result);
    }
  }
}
