import re s = input() str1 = re.sub(r'\D', "", s) sum = 0 for i in str1: sum += int(i) print(sum)