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