numbers ='0123456789' s = input() result = 0 for i in s: if i in numbers: result += int(i) print(result)