from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i) from math import log10 as log from sys import stdin A = [] A [] for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1)) po stdin S = list(map(int,po.split())) S list(map(int,po.split())) list map(int,po.split()) map int po.split() po.split po split A.append(int(log(S[0]+S[1])+1)) A.append A append int(log(S[0]+S[1])+1) int log(S[0]+S[1])+1 log(S[0]+S[1]) log S[0]+S[1] S[0] S 0 S[1] S 1 1 for i in A:
    print(i) i A print(i) print i A = [] [] A S = list(map(int,po.split())) list(map(int,po.split())) S
from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i)