S = input() M = 0 for s in S: if '0' <= s <= '9':M += int(s) print(M)