print(sum([int(_) for _ in input() if _.isdecimal()]))