s=0 for x in input(): if x.isdigit():s+=int(x) print(s)