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

public class Main {
  public static void main(String[] args) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  }
} 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) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  }
} Main public static void main(String[] args) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  } main {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    } IOException e {
      e.printStackTrace();
    } e.printStackTrace() e.printStackTrace e {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      } input.ready() input.ready input {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      } String[] dataset = input.readLine().split(" "); dataset input.readLine().split(" ") input.readLine().split input.readLine() input.readLine input " " int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]); sum Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]) Integer.valueOf(dataset[0]) Integer.valueOf Integer dataset[0] dataset 0 Integer.valueOf(dataset[1]) Integer.valueOf Integer dataset[1] dataset 1 System.out.println(countDigitNumber(sum)) System.out.println System.out System System.out countDigitNumber(sum) countDigitNumber sum String[] args args public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  } countDigitNumber {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  } int digitNumber = 1; digitNumber 1 while (number >= 10) {
      digitNumber++;
      number = number / 10;
    } number >= 10 number 10 {
      digitNumber++;
      number = number / 10;
    } digitNumber++ digitNumber number = number / 10 number number / 10 number 10 return digitNumber; digitNumber int number number public class Main {
  public static void main(String[] args) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  }
} public class Main {
  public static void main(String[] args) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try {
      while (input.ready()) {
        String[] dataset = input.readLine().split(" ");
        int sum = Integer.valueOf(dataset[0]) + Integer.valueOf(dataset[1]);
        System.out.println(countDigitNumber(sum));
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static int countDigitNumber(int number) {
    int digitNumber = 1;
    while (number >= 10) {
      digitNumber++;
      number = number / 10;
    }
    return digitNumber;
  }
}