from math import log10, floor
while True:
    try:
        w = input()
    except EOFError:
        break
    w = list(map(int, w.split()))
    print(floor(log10(sum(w))+1)) from math import log10, floor while True:
    try:
        w = input()
    except EOFError:
        break
    w = list(map(int, w.split()))
    print(floor(log10(sum(w))+1)) True try:
        w = input()
    except EOFError:
        break
     except EOFError:
        break
     break w = input() w input() input w = list(map(int, w.split())) w list(map(int, w.split())) list map(int, w.split()) map int w.split() w.split w split print(floor(log10(sum(w))+1)) print floor(log10(sum(w))+1) floor log10(sum(w))+1 log10(sum(w)) log10 sum(w) sum w 1 w = list(map(int, w.split())) list(map(int, w.split())) w w = input() input() w
from math import log10, floor
while True:
    try:
        w = input()
    except EOFError:
        break
    w = list(map(int, w.split()))
    print(floor(log10(sum(w))+1))