S =input() l ="0123456789" a = 0 for i in S: if i in l: a += int(i) print(a)