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

public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  }
} Main private static int a a b; b public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  } main {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) List<String> numst = new ArrayList<String>(); numst new ArrayList<String>() while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    } stdIn.hasNextInt() stdIn.hasNextInt stdIn {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    } a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn numst.add(String.valueOf(a+b)) numst.add numst String.valueOf(a+b) String.valueOf String a+b a b for (String  sum: numst) {
      System.out.println(sum.length());
    } String  sum numst {
      System.out.println(sum.length());
    } {
      System.out.println(sum.length());
    } System.out.println(sum.length()) System.out.println System.out System System.out sum.length() sum.length sum String[] args args public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  }
} public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  }
} Main
import java.util.*;
import java.io.*;

public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    List<String> numst = new ArrayList<String>();
    while (stdIn.hasNextInt()) {
      a = stdIn.nextInt();
      b = stdIn.nextInt();
      numst.add(String.valueOf(a+b));
    }
    for (String  sum: numst) {
      System.out.println(sum.length());
    }
  }
}