l = input() a = [] for i in l: if i.isdigit(): a.append(int(i)) print(sum(map(int, a)))