public class Homework{
public static void main(String[]args){
String a = "ja456va p5465hp java458script <div>465</div>";
Pattern s = Pattern.compile("\d+");
Matcher n = s.matcher(a);
int sum = 0;
while (n.find()){
int num = Integer.valueOf(n.group());
sum +=num;
}
System.out.println(sum);
}
}