s = input() nums = filter(str.isdigit, list(s)) print(sum(map(int, nums)))