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