import java.util.*;
import java.math.*;
class Main{
	public static void main(String args[]){
		Scanner s=new Scanner(System.in);
		BigInteger ret=new BigInteger("0");
		while(s.hasNext()){
			String str=s.next();
			String [] a=str.split("[^0-9]");
			for(int i=0;i<a.length;i++){
				if(a[i].length()>0)ret=ret.add(new BigInteger(a[i]));
			}
		}
		System.out.println(ret.toString());
	}
}