S = input() num = 0 for s in S: if s.isdecimal(): num += int(s) print(num)