#!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    try:
        a, b = map(int , input().split())
        sum = a + b
        print(len(str(a + b)))
    except:
        break while True:
    try:
        a, b = map(int , input().split())
        sum = a + b
        print(len(str(a + b)))
    except:
        break True try:
        a, b = map(int , input().split())
        sum = a + b
        print(len(str(a + b)))
    except:
        break except:
        break break a, b = map(int , input().split()) a map(int , input().split()) map int input().split() ().split () input split b sum = a + b sum a + b a b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b a, b = map(int , input().split()) map(int , input().split()) a sum = a + b a + b sum b = map(int , input().split()) map(int , input().split()) b
#!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    try:
        a, b = map(int , input().split())
        sum = a + b
        print(len(str(a + b)))
    except:
        break