l = list(input()) m=0 for i in range(len(l)): if l[i].isdigit() == 1: m = m+int(l[i]) print(m)