s = raw_input().split() ans=0 for i in s: if i in [str(j) for j in range(10)]: ans += int(i) print ans