words = list(map(str, input().split())) s = 0 for w in words: if w.isdecimal() == True: s = s + int(w) print(s)