while True:
    try:
        line = input()
    except EOFError:
        break
    s = sum(map(int, line.split()))
    num = 0
    for c in str(s):
        if c.isdigit():
            num += 1
    print(num) while True:
    try:
        line = input()
    except EOFError:
        break
    s = sum(map(int, line.split()))
    num = 0
    for c in str(s):
        if c.isdigit():
            num += 1
    print(num) True try:
        line = input()
    except EOFError:
        break
     except EOFError:
        break
     break line = input() line input() input s = sum(map(int, line.split())) s sum(map(int, line.split())) sum map(int, line.split()) map int line.split() line.split line split num = 0 num 0 for c in str(s):
        if c.isdigit():
            num += 1
     c str(s) str s if c.isdigit():
            num += 1
     c.isdigit() c.isdigit c isdigit num += 1 num 1 print(num) print num line = input() input() line num = 0 0 num s = sum(map(int, line.split())) sum(map(int, line.split())) s num += 1 1 num
while True:
    try:
        line = input()
    except EOFError:
        break
    s = sum(map(int, line.split()))
    num = 0
    for c in str(s):
        if c.isdigit():
            num += 1
    print(num)