import re print(sum(map(int,re.sub(r'\D','',input()))))