# -*- coding: utf-8 -*-
while True:
    try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break while True:
    try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break True try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break except Exception:
        break break int(i) for i in raw_input().split(" ") for i in raw_input().split(" ") i raw_input().split(" ") ().split () raw_input split " " for i in raw_input().split(" ") int(i) int i x = [int(i) for i in raw_input().split(" ")] x [int(i) for i in raw_input().split(" ")] print len(str(x[0]+x[1])) len str(x[0]+x[1]) str x[0]+x[1] x[0] x 0 x[1] x 1 x = [int(i) for i in raw_input().split(" ")] [int(i) for i in raw_input().split(" ")] x
# -*- coding: utf-8 -*-
while True:
    try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break