1 abc 2 def 3
6
total = 0 for token in input().split(): try: total += int(token) except ValueError: pass print(total)