S = input() ns = [int(x) for x in filter(str.isdecimal, list(S))] print(sum(ns))