#数字を全て足そう S = input() count = 0 for c in S: try: count += int(c) except: continue print(count)