S = input().split() n = [int(s) for s in list(str(S)) if s.isdigit()] print(list(str(S))) k = 0 for i in range(len(n)): k += n[i] print(k)