S = [ int(i) for i in input() if i in "123456789" ] print(sum(S))