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

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  }

  public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  }
} 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 {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  }

  public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  }
} Main public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  } main {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    } input.ready() input.ready input {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    } String numStr[] = input.readLine().split(" "); numStr input.readLine().split(" ") input.readLine().split input.readLine() input.readLine input " " int num[] = new int[2]; num new int[2] 2 num[0] = Integer.parseInt(numStr[0]) num[0] num 0 Integer.parseInt(numStr[0]) Integer.parseInt Integer numStr[0] numStr 0 num[1] = Integer.parseInt(numStr[1]) num[1] num 1 Integer.parseInt(numStr[1]) Integer.parseInt Integer numStr[1] numStr 1 System.out.println(getDigitNumber(num[0] + num[1])) System.out.println System.out System System.out getDigitNumber(num[0] + num[1]) getDigitNumber num[0] + num[1] num[0] num 0 num[1] num 1 String[] args args public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  } getDigitNumber {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  } int digit = 1; digit 1 while (num / 10 >= 1) {
      num /= 10;
      digit++;
    } num / 10 >= 1 num / 10 num 10 1 {
      num /= 10;
      digit++;
    } num /= 10 num 10 digit++ digit return digit; digit int num num public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  }

  public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  }
} public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  }

  public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    while (input.ready()) {
      String numStr[] = input.readLine().split(" ");
      int num[] = new int[2];
      num[0] = Integer.parseInt(numStr[0]);
      num[1] = Integer.parseInt(numStr[1]);

      System.out.println(getDigitNumber(num[0] + num[1]));

      ;
    }
  }

  public static int getDigitNumber(int num) {

    int digit = 1;
    while (num / 10 >= 1) {
      num /= 10;
      digit++;
    }
    return digit;
  }
}