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