import re while~9:*_,=range(10);exec(re.sub("(\d)",r"_[\1]",input()));print(ans)