import std.stdio;
import std.string;
import std.array;
import std.conv;

uint figure(uint num) {
  if(num == 0) return 0;
  else return figure(num / 10) + 1;
}

void main() {
  string[][] inputs;
  while(true) {
    auto s = readln();
    if(stdin.eof()) break;
    else inputs ~= split(s);
  }

  foreach(input; inputs) {
    uint a = to!uint(input[0]);
    uint b = to!uint(input[1]);

    writeln(figure(a + b));  
  }
}