while True:
    try:
        a, b = list(map(int, input().split()))
        print(len(str(a + b)))
    except EOFError:
        break
    except ValueError:
        break
 while True:
    try:
        a, b = list(map(int, input().split()))
        print(len(str(a + b)))
    except EOFError:
        break
    except ValueError:
        break True try:
        a, b = list(map(int, input().split()))
        print(len(str(a + b)))
    except EOFError:
        break
    except ValueError:
        break except EOFError:
        break
     break except ValueError:
        break break a, b = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b a, b = list(map(int, input().split())) list(map(int, input().split())) a b = list(map(int, input().split())) list(map(int, input().split())) b
while True:
    try:
        a, b = list(map(int, input().split()))
        print(len(str(a + b)))
    except EOFError:
        break
    except ValueError:
        break

