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