S = list(input()) ans = 0 for i in S: if i.isdecimal(): ans += int(i) print(ans)