print(sum([int(x) for x in list(input()) if x.isdigit()]))