S = input() ans = 0 for i in S: if(i.isdigit()): ans = ans+int(i) print(ans)