import re def main(): S = input() result = re.sub(r"\D", "", S) print(sum(map(int, list(result)))) if __name__ == '__main__': main()