import java.io.*;
public class TestAnd{
public static void main(String[] args)throws Exception{
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader buf=new BufferedReader(ir);
int i1=0;
int i2=0;
String str=null;
try {
System.out.print("输入第一个值:");
str=buf.readLine();
i1=Integer.parseInt(str);
System.out.print("输入第二个值:");
str=buf.readLine();
i2=Integer.parseInt(str);
System.out.println("两数值之和是:"+(i1+i2));
}catch(Exception e){
System.out.println("输入的是非法数字");
}
}
}