import std.stdio, std.range, std.algorithm, std.conv, std.string, std.math, std.typecons;

void main() {
  auto inp = readln;
  while (!stdin.eof) {
    (inp.split.to!(int[]).sum.log10.floor+1).writeln;
    inp = readln;
  }
}