L = [int(i) for i in input() if i.isdigit()] print(sum(L))