S = input() slis = list(S) nlis = list("123456789") ans = 0 for i in slis: if i in nlis: ans += int(i) print(ans)