import java.io.*; //imports java.io class

/*
 * Adds 2 integers given by the user, then prints out the sum.
 */


public class addReadLine {

      //main(): application entry point
      public static void main(String[] args) throws IOException {

            //set input stream
            BufferedReader stdin = new BufferedReader(
                  new InputStreamReader(System.in));

            //get numbers from user input
            //asks user for 1st number, then converts it to an integer
            System.out.print("Enter first integer: ");
            int x = Integer.parseInt(stdin.readLine());
            //asks user for 2nd number, than converts it to an integer
            System.out.print("Enter second integer: ");
            int y = Integer.parseInt(stdin.readLine());

            //add x,y
            int sum = x + y;

            //Display sum of x,y
            System.out.println("The sum is: " + sum);
      }//ends main
}//ends addReadLine