s=list(input()) a=0 for t in s: if t.isdigit(): a=a+int(t) else: a=a print(a)