import re def main(): a = input() result = re.sub(r'\D', '', a) sum = 0 for i in result: sum += int(i) print(sum) if __name__ == '__main__': main()