#!/usr/bin/env python3
import math
import sys

for line in sys.stdin:
    [a, b] = [int(x) for x in line.split()]
    print(int(math.log10(a + b) + 1)) import math math import sys sys for line in sys.stdin:
    [a, b] = [int(x) for x in line.split()]
    print(int(math.log10(a + b) + 1)) line sys.stdin sys stdin int(x) for x in line.split() for x in line.split() x line.split() line.split line split for x in line.split() int(x) int x [a, b] = [int(x) for x in line.split()] [a, b] a b [int(x) for x in line.split()] print(int(math.log10(a + b) + 1)) print int(math.log10(a + b) + 1) int math.log10(a + b) + 1 math.log10(a + b) math.log10 math log10 a + b a b 1
#!/usr/bin/env python3
import math
import sys

for line in sys.stdin:
    [a, b] = [int(x) for x in line.split()]
    print(int(math.log10(a + b) + 1))