# coding: utf-8 # Your code here! word = input() ans = 0 for x in word: if x.isnumeric(): ans += int(x) print(ans)