print(sum(i-'0' for i in input() if i.isdigit()))