while(True):
    try:
        a = map(int, raw_input().split())
        b = str(a[0] + a[1])
        print(len(b))
    except Exception:
        break while(True):
    try:
        a = map(int, raw_input().split())
        b = str(a[0] + a[1])
        print(len(b))
    except Exception:
        break True try:
        a = map(int, raw_input().split())
        b = str(a[0] + a[1])
        print(len(b))
    except Exception:
        break except Exception:
        break break a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split b = str(a[0] + a[1]) b str(a[0] + a[1]) str a[0] + a[1] a[0] a 0 a[1] a 1 print(len(b)) print len(b) len b a = map(int, raw_input().split()) map(int, raw_input().split()) a b = str(a[0] + a[1]) str(a[0] + a[1]) b
while(True):
    try:
        a = map(int, raw_input().split())
        b = str(a[0] + a[1])
        print(len(b))
    except Exception:
        break