s = str(input()) ans = 0 for c in s: if c.isdecimal(): ans += int(c) print(ans)