# -*- coding:utf8 -*-
import sys
import math
for s in sys.stdin:
    a,b = map(int, s.split(' '))
    print int(math.log10(a+b)) + 1 import sys sys import math math for s in sys.stdin:
    a,b = map(int, s.split(' '))
    print int(math.log10(a+b)) + 1 s sys.stdin sys stdin a,b = map(int, s.split(' ')) a map(int, s.split(' ')) map int s.split(' ') s.split s split ' ' b print int(math.log10(a+b)) + 1 int(math.log10(a+b)) int math.log10(a+b) math.log10 math log10 a+b a b 1 b = map(int, s.split(' ')) map(int, s.split(' ')) b a,b = map(int, s.split(' ')) map(int, s.split(' ')) a
# -*- coding:utf8 -*-
import sys
import math
for s in sys.stdin:
    a,b = map(int, s.split(' '))
    print int(math.log10(a+b)) + 1