import java.util.Scanner;
public class jin{
public static void main(String[]args){
//从键盘读取若干整数并求和输出
int nextValue;
int sum=0;
Scanner sr = new Scanner(System.in);
//设置空格为数据的分隔符
sr.useDelimiter("\s");
while(sr.hasNextInt()) //判断有没有int型的输入
{
nextValue = sr.nextInt();//读取从键盘输入的整数
sum += nextValue;
}
//System.out.println("sum:"+sum);
System.out.printf("Sum: %d",sum);
sr.close();
}
}