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