S = input() sum = 0 for char in S: if str.isnumeric(char): char = int(char) sum += char print(sum)