# -*- coding: utf-8 -*-

import sys

for line in sys.stdin.readlines():
    a, b = map(int, line.strip().split())
    n = a + b
    ans = 1
    while(n >= 10):
        n /= 10
        ans += 1
    print ans import sys sys for line in sys.stdin.readlines():
    a, b = map(int, line.strip().split())
    n = a + b
    ans = 1
    while(n >= 10):
        n /= 10
        ans += 1
    print ans line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a, b = map(int, line.strip().split()) a map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split b n = a + b n a + b a b ans = 1 ans 1 while(n >= 10):
        n /= 10
        ans += 1
     n >= 10 n 10 n /= 10 n 10 ans += 1 ans 1 print a, b = map(int, line.strip().split()) map(int, line.strip().split()) a b = map(int, line.strip().split()) map(int, line.strip().split()) b n /= 10 10 n n = a + b a + b n ans += 1 1 ans ans = 1 1 ans
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin.readlines():
    a, b = map(int, line.strip().split())
    n = a + b
    ans = 1
    while(n >= 10):
        n /= 10
        ans += 1
    print ans