s = input() t = [int(i) for i in s if i.isdigit() == True] print(sum(t))