while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break; while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break; True try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break; except:
        break; break int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b = (int(x) for x in input().split()) a (int(x) for x in input().split()) b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b a, b = (int(x) for x in input().split()) (int(x) for x in input().split()) a b = (int(x) for x in input().split()) (int(x) for x in input().split()) b
while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break;
