import sys

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{0}".format(len(str((a + b)))) import sys sys for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{0}".format(len(str((a + b)))) i sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a, b = map(int, i.strip().split()) a map(int, i.strip().split()) map int i.strip().split() i.strip().split i.strip() i.strip i strip split b print "{0}".format(len(str((a + b)))) "{0}".format "{0}" format len(str((a + b))) len str((a + b)) str a + b a b a, b = map(int, i.strip().split()) map(int, i.strip().split()) a b = map(int, i.strip().split()) map(int, i.strip().split()) b
import sys

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{0}".format(len(str((a + b))))