l=list(input()) sum=0 for item in l: if item.isdigit()==True: sum+=int(item) print(sum)