import sys
strs = sys.stdin.readlines()
for s in strs:
    a, b = map(int, s.split())
    print(len(str(a + b))) import sys sys strs = sys.stdin.readlines() strs sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for s in strs:
    a, b = map(int, s.split())
    print(len(str(a + b))) s strs a, b = map(int, s.split()) a map(int, s.split()) map int s.split() s.split s split b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b strs = sys.stdin.readlines() sys.stdin.readlines() strs a, b = map(int, s.split()) map(int, s.split()) a b = map(int, s.split()) map(int, s.split()) b
import sys
strs = sys.stdin.readlines()
for s in strs:
    a, b = map(int, s.split())
    print(len(str(a + b)))