S = input() A = 0 for i in S: if i.isdecimal() == True: A += int(i) else: continue print(A)