1. 문제
https://www.acmicpc.net/problem/1284
2. 풀이
while True:
_input = input()
if _input == '0':
break
answer = 2 + len(_input) - 1
for x in _input:
if x in '1':
answer += 2
elif x in '23456789':
answer += 3
elif x in '0':
answer += 4
print(answer)