def main(): input_string = input() ans = 0 for e in list(input_string): if e.isdigit(): ans += int(e) print(ans) if __name__ == '__main__': main()