#!/usr/bin/env python3

import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer)
 import collections collections import sys sys def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs read_prob inputs = [] inputs [] try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
     except EOFError:
        pass
     while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
     True line = input().strip().split() line input().strip().split() ().strip().split ().strip() ().strip () input strip split a, b = line[0], line[1] a line[0] line 0 b line[1] line 1 inputs.append(int(a) + int(b)) inputs.append inputs append int(a) + int(b) int(a) int a int(b) int b return inputs inputs if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer) __name__ == '__main__' __name__ '__main__' inputs = read_prob() inputs read_prob() read_prob for inp in inputs:
        answer = len(str(inp))
        print(answer) inp inputs answer = len(str(inp)) answer len(str(inp)) len str(inp) str inp print(answer) print answer def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs read_prob inputs = read_prob() read_prob() inputs answer = len(str(inp)) len(str(inp)) answer
#!/usr/bin/env python3

import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer)

