import java.util.Scanner;

class Main {
  public static void main( String args[] ) {
    Scanner scan = new Scanner( System.in );

    while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    }
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main( String args[] ) {
    Scanner scan = new Scanner( System.in );

    while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    }
  }
} Main public static void main( String args[] ) {
    Scanner scan = new Scanner( System.in );

    while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    }
  } main {
    Scanner scan = new Scanner( System.in );

    while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    }
  } Scanner scan = new Scanner( System.in ); scan new Scanner( System.in ) while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    } scan.hasNext() scan.hasNext scan {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    } int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan int z = 1; z 1 int out = 0; out 0 while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      } true {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      } int r = ( x + y ) / z; r ( x + y ) / z ( x + y ) x y z if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        } r == 0 r 0 {
          break;
        } break; {
          z *= 10;
          out++;
        } z *= 10 z 10 out++ out System.out.println(out) System.out.println System.out System System.out out String args[] args
import java.util.Scanner;

class Main {
  public static void main( String args[] ) {
    Scanner scan = new Scanner( System.in );

    while( scan.hasNext() ) {
      int x = scan.nextInt();
      int y = scan.nextInt();
      int z = 1;
      int out = 0;
      while( true ) {
        int r = ( x + y ) / z;
        if( r == 0 ) {
          break;
        } else {
          z *= 10;
          out++;
        }
      }
      System.out.println(out);
    }
  }
}