S = input() res = 0 for i in S: if i.isnumeric(): res = res + int(i) print(res)